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 Answers
You can just register another stylesheet instead of style.css
:
add_action( 'wp_enqueue_scripts', 'enqueue_theme_css' );
function enqueue_theme_css()
{
wp_enqueue_style(
'default',
get_template_directory_uri() . '/css/default.css'
);
}
This is, in my opinion, better than using style.css
.