WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Child theme style not overriding parent (7 posts)

  1. julievic
    Member
    Posted 1 year ago #

    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.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to your site? And what theme are you using?

  3. julievic
    Member
    Posted 1 year ago #

    Here is the link to my site still under construction:

    http://oceangraphicdesign.com/wordpress/

    I am using Inspiration (Premium) theme.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I don't see any child theme stylesheet (at least not a typical one) -- but it is possible that your theme won't work with a child theme (some won't). But I do see a custom CSS file -- is that a theme option? Why not use that?

    But really, to deal with this issue, you really need to contact the theme vendor for help -- commercial themes are not supported here. Part of what you pay for is support...if they are not providing it, perhaps consider a different theme.

  5. julievic
    Member
    Posted 1 year ago #

    I've tried to contact the author but they no longer respond to emails, and looking in the comments there are SEVERAL others that are not satisfied with this theme. (I'm wishing I would have looked at those comments first before I shelled out the money for it). I'm guessing my option at this point is to either see if Theme Forest will give me a refund on it and I have to start new (which is a shame, I really like the portfolio piece of this theme) OR make the changes like you suggested, but without a child theme wouldn't I risk all my changes be overwritten if I ever upgrade WordPress?

    Thank you so much for taking a look at it though.

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    but without a child theme wouldn't I risk all my changes be overwritten if I ever upgrade WordPress?

    no - a WordPress upgrade will not effect your customisations of the theme (unless the theme's functions are deprecated - which could be fixed).

    your customisations are at risk only if you ever upgrade the theme.

  7. julievic
    Member
    Posted 1 year ago #

    Well, since the author of the theme is MIA, I'm assuming that upgrading the theme will not be an issue. Buyer beware.

    Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Topic