Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

Installing a child theme after done some work to the Original GP parent theme

Home Forums Support Installing a child theme after done some work to the Original GP parent theme

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #181931
    Gabriel

    Hi, I have Generatepress Premium.

    When I first installed Generatepress I chose the Original Parent Theme, then I added some content, and added some CCS code through the Simple CCS plug-in

    Now I think it would be better to use a child theme but I don’t want to lose the work I already did to my blog.

    My question is:

    How can I change to a child theme without losing all the changes I’ve already done?

    I have all the changes to the CCS in a file, I apply it pasting that code to the CCS editor on the Simple CCS plug in.

    Thank you.

    #181941
    Tom
    Lead Developer
    Lead Developer

    What kind of changes have you done? Changes to the core PHP/CSS files in the theme?

    If you’ve only added CSS using Simple CSS and made changes through the Customizer, then you’re fine without a child theme/switching to a child theme.

    Let me know 🙂

    #181972
    Gabriel

    Hi, thanks for your answer…

    I only did changes using the Simple CCS plug in. I did not touch any core PHP/CCS file.

    But maybe in the next future I will want to make changes to those files. I would preffer to use a Child theme, what is the procudure to change it to a Child Theme from the Original Parent theme without loosing the changes I’ve already done??

    Thank you.

    #181989
    Tom
    Lead Developer
    Lead Developer

    If you haven’t done anything to the parent theme files, then you can just switch to a child theme – you won’t lose any changes. All of those changes are stored in the database which isn’t touched by theme changes.

    The only thing you might have to do is re-set your “Theme Location” for the menu in “Appearance > Menus”.

    #182024
    Gabriel

    Hi, thank you again for your answer.

    I have an idea that would be the best for my situation, I want to ask you what do you think about it.

    Because I have not done any change to the core files of the GeneratePress Original Parent theme, I will keep using it, and if a day comes when I want to do changes to the core files I can make my own child theme based on the GP Original Parent theme and start doing my own customisation on the child theme I’ve just created.

    Does it make sense? Sorry if the question is to dumb, I’m just learning.

    Thank you.

    #182052
    Tom
    Lead Developer
    Lead Developer

    Absolutely that makes sense 🙂

    In most cases, you can overwrite core functions using the instructions here: https://generatepress.com/knowledgebase/adding-php-functions/

    Child themes are useful if you’re adding custom page templates, but otherwise I’ve made it very easy in GP to customize everything without a child theme.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.