Child Theme (4 posts)

  1. nsage
    Posted 1 year ago #

    I am building a site and made several edits to the style.css. I then was reading how important it is to use a child theme when doing this.

    I wanted to know if I should use a child theme with the Restaurateur theme? If I go to update the Restaurateur theme without using a child theme, will I lose all those changes I spent weeks doing? And finally, if I do in fact need to create a child theme to insure all changes to the style sheet stay true, will I have to start completely over now or can I move those edits to the child's theme?

    Thank you for any help!

  2. batharoy
    Posted 1 year ago #

    All those edits will be gone if the theme is updated. You can move the edits to the child-theme. And you should definitely start one now if you haven't already.

  3. nsage
    Posted 1 year ago #

    Thank you batharoy, that's what I thought.

    So what would you recommend for the best way to copy the edits I made over? I don't have a list of what I changed and it was a lot. I'm new to WP but I'm guessing the most logical way would be to:
    1. Make a copy of the edited style.css and any .php pages I did right in the theme and save to computer to reference.
    2. Do the update/lose those edits
    3. Learn how to create/install a child's theme (suggestions on best tutorials welcome)
    4. Cross reference the updated css with my saved/edited version
    5. Any code in the saved/edited version that is different from the updated themes .css I copy and paste into the child theme. That should ultimately override the code from the parent theme.

    Am I understanding this correctly?

    Will I also lose any edits I did just from the Appearance>Customize tab (ie background colors, uploaded logo, etc) when I update and then create a child theme?

    Thank you so much for your help and patience.

  4. batharoy
    Posted 1 year ago #

    I would do #2 at the end.

    That way you can compare the parent / child before any update changes, if there are any.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic