Child theme CSS being loaded in admin pages
-
I’ve created a child theme, and in it’s functions.php I have the following line which loads “style.css” in the child folder:
wp_enqueue_style( ‘main_css’, get_stylesheet_uri() );
This works fine on the site, however the same stylesheet is also being loaded whilst in the WordPress admin pages. Why? It’s causing some of the sections to look add, and I was tearing my hair out wondering if a plugin was causing this at first.
Simple fix?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child theme CSS being loaded in admin pages’ is closed to new replies.