- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Tom.
March 26, 2016 at 2:20 pm #181931Gabriel
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.March 26, 2016 at 4:06 pm #181941TomLead DeveloperLead 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 🙂March 26, 2016 at 6:19 pm #181972Gabriel
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.March 26, 2016 at 10:32 pm #181989TomLead DeveloperLead 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”.March 27, 2016 at 5:52 am #182024Gabriel
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.March 27, 2016 at 10:59 am #182052TomLead DeveloperLead 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.
- You must be logged in to reply to this topic.