CMS & WordPress
I have various stylesheets in my theme which I’m trying to condense/streamline. There are currently around 10 CSS files linked in the header, however 5 of these are pointing to the wrong directory. When I go to change the path there is no trace of these files being linked in the header code. I’ve checked the other (correct) CSS links and they are present, and do not contain any ‘@imports’ for the incorrect links. Judging from the incorrect links these are not relating to any plugins which are on the site. Please could somebody advise where these might be coming from, and how I can edit/delete them?
How are you linking to them? Are you using a straight html link or are you using WP_ENQUEUE_SCRIPT?
When you are linking to a css file, its from the page level, not the level of the theme. Absolute links work well.
The theme gets loaded into the index page.
A common technique I use to determine where/when CSS stylesheets are loading is to load the website in Google Chrome, press F12, click on Resources, and then open the Frames folder, then page name folder, and you will see a Stylesheets section that will list all of the stylesheets that were loaded.
This topic is now archived. It is frozen and cannot be changed in any way.