Archived topic
Inherit style guide, parent theme to child theme.
9 replies · Started by Juan Andrade on August 8, 2022
Hi guys, I need to inherit the style guides (colors, typography, etc...), from the parent theme to the child theme, any idea how to do it?
Hi there,
Sorry I don't quite understand what you are referring to here.
Can you explain a bit more?
Thanks!
In Generatepress I created a style guide and I need to use that in my child theme.
The problem is when I make the child theme and I don't have this style guide (the global colors and fonts) for the child theme.
Hi there,
When you say the global style guide, do you mean the settings in customizer > typography and customizer > colors?
If so, the child theme should inherit the parent theme settings.
Let me know if I miss anything.
Yes, that's it Ying,
But how do I inherit those settings in my child theme?
By default, the customizer settings should not change when switching from parent theme to child theme, so it means you don't have to do any extra settings.
Did you install the child theme downloaded from this link?
https://docs.generatepress.com/article/using-child-theme/
Let me know!
I manually created my child theme in the wp-content directory, I didn't import it as a zip.
The problem is that when I activate it, all the colors and fonts that I set in the parent theme disappear.
Hum..can you try using the uploading zip file method to create the child theme?
Already solved!
I saw that in the style.css of the child theme it did not contain the tag <<Template: generatepress>>, that was what I did not add.
Thank you so much!
Great! Glad you figured it out :)