I was wondering if its possible to have my theme style.css
in a css
folder rather than in the root? I assume that the Theme Metadata has to be in the theme root, but could the actual styles be moved? Is this a piece of meta data I would add to the theme meta?
2 comments
Comments are closed.
You can just register another stylesheet instead of
style.css
:This is, in my opinion, better than using
style.css
.Originally I said
But this was incorrect as this is no longer the preferred way to reference a style sheet.
Now, I have discovered a plugin that makes child’s play of creating a child theme (please excuse the pun) https://wordpress.org/plugins/child-theme-configurator/
You could probably use this plugin to enqueue your other stylesheet. Might be worth having a look at the instructions to see if this is practical.
Hope this helps.