• Resolved bilrosenberger

    (@bilrosenberger)


    This is the first time I’ve used a child theme when some of the styling is not in style.css, i.e. content>themes>child theme>css>main.css. My child theme has the following lines in the style.css:
    /*
    Theme Name: Full Width Child
    Template: skt-full-width
    Author: 413webdesign
    Version: 1.0
    Updated: 2014-10-10 05:03:15
    */

    @charset “UTF-8”;
    @import url(‘../skt-full-width/style.css’);

    Do I need to do anything else to pull stuff from main.css? I have the folder and all of it’s contents copied to my child theme. If I make the changes in the main theme, the changes work fine. I guess my question is this…if I make changes in main.css in the main theme, do those changes get overwritten on theme updates?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author sonalsinha21

    (@sonalsinha21)

    Hi,

    I am little bad with child.css. I am sorry for this. But i can help you make the theme folder different in case you are worried about updates in future may wipe out your edits.

    I hope someone from community answers you on child.css and child theme.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I guess my question is this…if I make changes in main.css in the main theme, do those changes get overwritten on theme updates?

    Yep. Why do you need to make changes there?

    Theme Author sonalsinha21

    (@sonalsinha21)

    Oh okay write all your css in custom css area available here: Appearance>Theme Options

    You don’t need to worry even if the theme is updated then. So no need of child theme in this case.

    Thread Starter bilrosenberger

    (@bilrosenberger)

    Andrew, some of the code like font size for the internal pages is there. I got rid of the sidebar and want to make the font a little bigger. I just don’t want to make changes only to have to make them again if the theme updates.
    SKT Theme Author. I’ll try what you said and see if that works. Thanks for the input.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m still not sure why you need to make your CSS changes there. How were you making changes in your Child Theme style.css file at all, because it was blank to begin with?

    Thread Starter bilrosenberger

    (@bilrosenberger)

    It wasn’t blank, I was just showing how I was pulling code for the child theme. Again, Andrew, some of the things I wanted to change were NOT in style.css they are in main.css
    I put some code in Theme Options, as stated above, and that seems to be working so far.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It doesn’t matter where the CSS is, just copy it and paste it into your Child Theme style.css file and change it there. If it still doesn’t work then add an extra selector for specificity.

    Thread Starter bilrosenberger

    (@bilrosenberger)

    Andrew, I didn’t know I could do that. I’m new to all this and still learning. Thank you all very much for the input. I think I can mark this resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘css>Main.css changes not working in child theme’ is closed to new replies.