WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] child theme css changes not working (12 posts)

  1. jrcollins
    Member
    Posted 1 year ago #

    I created a child theme but can't make changes to the theme when I edit the style sheet.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You'll need to post a link to the site for help with this.

  3. jrcollins
    Member
    Posted 1 year ago #

    Sorry, I don't have a link to the site because I'm working on it offline.
    The theme is activated and I am able to edit template files that I put into that folder but any changes I make to the style sheet have no effect.
    I'm using the following line to import the parent theme's style sheet:
    @import url('../simplo/style.css');

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Then you probably either have a CSS syntax error, your selectors are not specific enough, or it's not set up correctly.

    What else is in the header of the style.css file?

  5. jrcollins
    Member
    Posted 1 year ago #

    /*
    Theme Name: Simplo Child
    Theme URI: http://www.s5themes.com/theme/simplo/
    Description: Child theme for Simplo theme
    Template: simplo
    Version: 1.0
    */
    @import url('../simplo/style.css');
  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    This is wrong -

    @import url('http://meratolreport.com/wp-content/themes/simplo/style.css');

    That's not what you have above - which IS correct.

  7. jrcollins
    Member
    Posted 1 year ago #

    oh sorry, yeah, I was just using the absolute path to the parent theme's style sheet to see if that worked but it didn't.

  8. jrcollins
    Member
    Posted 1 year ago #

    /*
    Theme Name: Simplo Child
    Theme URI: http://www.s5themes.com/theme/simplo/
    Description: Child theme for Simplo theme
    Template: simplo
    Version: 1.0
    */
    @import url('../simplo/style.css');
  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try adding this below that line - just to see if it's working - some themes won't work with a child theme so that's possible too:

    body {
        color: red !important;
    }
  10. jrcollins
    Member
    Posted 1 year ago #

    Thanks, tried that and still nothing. I didn't know that some themes won't work with a child theme. I'm guessing that the Simplo theme must be one of those themes. I just wish I knew that before instead of wasting 2 hours!
    I followed exactly the same process with another theme and was able to create a working child theme without a problem.
    As I am planning to make only a few minor changes to the theme, I will forget about the child theme and just go in and edit the files in the main theme directory.

  11. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yeah, that's so annoying. For CSS changes you can easily use a CSS plugin like Custom CSS Manager - it works great.

  12. jrcollins
    Member
    Posted 1 year ago #

    Ok, thanks. I appreciate your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.