• Resolved Gretchen

    (@respblog)


    I’m new to WordPress (although not new to CSS and HTML) and have a basic question on using Child Themes.
    I started to customize my VisitPress theme on the parent .css style sheet. Remembering that I was advised to create a Child Theme so that I wouldn’t lose changes in an update, I created a Child Theme that is now feeding from the Parent theme. That part seems to be working fine.
    However, I haven’t updated the theme yet as the changes are on the Parent Theme and it would make sense that I would lose them in the update and the updated style sheet would feed to the Child Theme.
    If I am right my question would be how to resolve this –

    If I copy and paste the changes made on the parent style sheet onto the child style sheet would this prevent the loss of the changes? Since I can’t remember what I changed exactly, can I copy and past the entire style sheet onto the new one? If I do, should I remove the @import url(“../VisitPress/style.css”) ?
    If I’m wrong, there is something that I’m just not getting.

    In the future should I create the Child Theme at the beginning and make all the changes on the new style sheet.
    These are pretty basic questions. I could find a lot of info on setting up a child theme, but not much that would answer these questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, you should move your changes to the child theme – you can find them by using a file comparison program such as diffchecker.

    It’s not ideal to copy the entire style.css file to the child theme – as it creates duplicate code and makes it harder to keep track of what you have changed.

    In the future should I create the Child Theme at the beginning and make all the changes on the new style sheet.

    Yep, it’s definitely best to do that before doing anything to your theme/site.

    Thread Starter Gretchen

    (@respblog)

    Thanks – I appreciate the quick response. I thought I was on the right track, but it was great to have it confirmed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Themes/Updates’ is closed to new replies.