I have created a child theme to modify css on my site, however any changes that I made on the child theme style.css file are not reflecting on the site.
Here is the background info. The parent theme that I am using has a light and dark colored theme with multiple stylesheets located
within theme/stylesheets/light/styles.css. However there is a dummy style.css located at theme/style.css (which from my understanding is necessary to make the child theme work).
The child theme is loading all the functions from the parent theme and for all appearances seems to be working, however when I make any changes to the child theme css nothing happens. I’ve done drastic changes like changing the body background color etc…
child theme has the following
Theme Name: child name
Description: Child theme for the theme
Template: theme name
@import url(“../theme name/style.css”);
The stylesheet it is importing obviously is the dummy stylesheet. I’m not sure if the reason my changes are not reflecting is because it is a dummy stylesheet or what. This is my first time working with a dummy stylesheet.
After further investigation using Firebug I can see that the header.php file is still pulling all the parent theme’s stylesheets rather than the child theme stylesheet.
I ran across this thread and made changed the php code in my header.php to <?php bloginfo(‘stylesheet_url’); instead of template_url and I’ve tried importing the parent themes stylesheets into the dummy stylesheet as suggested and that does not work.
I’ve been spinning my wheels on this for a while and I just can’t seem to figure it out. ANY help would be appreciated.
- The topic ‘Child theme style not overriding parent’ is closed to new replies.