[Resolved] Inherit style guide, parent theme to child theme.

Home Forums Support [Resolved] Inherit style guide, parent theme to child theme.

Home Forums Support Inherit style guide, parent theme to child theme.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2307167
    Juan Andrade

    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?

    #2307261
    Leo
    Staff
    Customer Support

    Hi there,

    Sorry I don’t quite understand what you are referring to here.

    Can you explain a bit more?

    Thanks!

    #2308197
    Juan Andrade

    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.

    #2308280
    Ying
    Staff
    Customer Support

    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.

    #2309267
    Juan Andrade

    Yes, that’s it Ying,
    But how do I inherit those settings in my child theme?

    #2309325
    Ying
    Staff
    Customer Support

    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!

    #2309334
    Juan Andrade

    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.

    #2309336
    Ying
    Staff
    Customer Support

    Hum..can you try using the uploading zip file method to create the child theme?

    #2309337
    Juan Andrade

    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!

    #2309339
    Ying
    Staff
    Customer Support

    Great! Glad you figured it out 🙂

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