- This topic has 10 replies, 2 voices, and was last updated 3 years, 2 months ago by Leo.
March 1, 2018 at 7:46 am #508975Vlad
1. I use the child theme, but after changing the design in “Customise” I do not see any changes in style.css in the child theme.
If the changes are made only in the parent theme, can I lose them after the update?
2. What is the better: to use the child theme and write the code into style.css and functions.php, or to use the parent theme and insert css and php code by plugins?
3. When using child theme, how can I make changes to header.php so that they are not lost after the update?
Thank you.GeneratePress 2.0.2GP Premium 1.5.6March 1, 2018 at 10:19 am #509061Vlad
Let me ask you another question: will the code in hooks be lost after the update?March 1, 2018 at 2:40 pm #509222LeoStaffCustomer Support
1. I’m gonna guess this is the issue: https://docs.generatepress.com/article/child-theme-issues/#import
2. It generally depends on how much customization you plan on doing. See this article here: https://docs.generatepress.com/article/using-child-theme/
3. Nothing will lose in child theme during updates.
4. Hooks are saved through updates.March 2, 2018 at 6:46 am #509674Vlad
1. No, the problem is not this, I have the correct child theme, because I downloaded it from your site.
My question is different. For example, I activated the child theme and changed fonts and colors. But after these changes, the style.css and function.php in child theme are still empty, that means that changes are written to the parent theme.
Question: Where these changes recording? At the parent theme? After the upgrade, they will not be overwritten?
Thank you.March 2, 2018 at 8:22 am #509803LeoStaffCustomer SupportMarch 2, 2018 at 8:56 am #509842Vlad
That is, the child theme is only needed to add additional css and php.
If I add this code through the plugins, I will not need a child theme.
Thank you very much for the answer.March 2, 2018 at 3:43 pm #510118LeoStaffCustomer SupportMarch 3, 2018 at 7:52 am #510605Vlad
It’s good that you marked it.
Did I correctly understand, if I want to insert the breadcrumbs php code in header.php, I should copy this file to the child theme?March 3, 2018 at 10:01 am #510667LeoStaffCustomer Support
If so they can go directly into hooks where you want them to appear.March 3, 2018 at 1:12 pm #510789Vlad
Thank you so much!March 3, 2018 at 6:31 pm #510907
- You must be logged in to reply to this topic.