So I need to change multiple CSS Style sheet paths for a WordPress website. They rely on a domain that is no longer going to be active. What is the best way to apply the path of these CSS file to all pages within my website and future pages as they are created.
So I need to change multiple CSS Style sheet paths for a WordPress website. They rely on a domain that is no longer going to be active. What is the best way to apply the path of these CSS file to all pages within my website and future pages as they are created.
You can override your Header <head> ... </head>
in the header.php
of your Theme.
I prefere you create a Childtheme, if you don't know how, let me google that for you ;).
And than simply copy your header.php
from your Parent Theme in /wp-content/themes/your-theme
to /wp-content/themes/your-child-theme
(replace the theme dir with yours).
And add your styles after <?php wp_head(); ?>
and before </head>
like normally css-styles will add:
<link rel="stylesheet" href="/wp-content/themes/your-child-theme/css/yourStylesheet.css" type='text/css' media='all' />
The Styles will add to each page.
Hope it helps.