Archived topic
Child theme
1 reply · Started by Amit on December 25, 2019
After installing Generatepress premium on my website I had added some come codes in functions.php and header.php and when I update the theme I lost these codes eachtime.
I want to make these code permanent.
Thats why I want to use a child theme.
I have never used a child theme and for that reason I have some qwery about child theme which I am mentioning below:
After using child theme
1] are these codes become permanent on functions.php and header.php?
2] when I update the theme are these files also updated?
3] if not updated will there be any problem in future?
One more:
4] Does generatepress provide/has any child theme?
5] Or I will install any plugin from wordpress plug directory.
I hope you understand my requirements and what I am saying.
Please reply.
Thanks in advance,
Amit Mandal
Hi there,
1) Code added in function.php and style.css won't be erased through udpates.
2) Child theme grabs the core files from the parent theme so you can always use the latest version.
3) Definitely always update.
4) This should help: https://docs.generatepress.com/article/using-child-theme/