Site logo

[Resolved] Child Theme with different settings

Home Forums Support [Resolved] Child Theme with different settings

Home Forums Support Child Theme with different settings

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #149294
    Oleg

    Hi!
    I want to make some children templates with different settings in the menu. For example, there must be different width units in children’s themes. I do not know how to do it. The templates are different, but the settings for all alone.

    #149517
    Tom
    Lead Developer
    Lead Developer

    I’m not too sure what you mean? What exactly are you wanting to do?

    You can put different CSS and functions into different child themes to accomplish custom functionality in each one.

    #149621
    Oleg

    I mean the following. Theme Settings affect all templates, including children. I want to make separate settings for different themes.

    1

    #149682
    Tom
    Lead Developer
    Lead Developer

    You can use the functions.php file in your child themes to change the default values: https://generatepress.com/forums/topic/how-can-i-create-a-child-theme-that-comprehends-customizer-settings/#post-114781

    Is that what you’re wanting to do?

    #149691
    Oleg

    Yes, it is. But where to get the full list of variables for setting all add-ons? The link you provided only part of the variables.

    #149695
    Tom
    Lead Developer
    Lead Developer

    Currently you can only tap into the default options, Colors, Typography and Spacing using the free theme. I edited that post I linked to so it includes the Spacing options as well.

    #149697
    Oleg

    Thanks for the info. Will the future support for other add-ons? I would like to set up children themes: Background, Blog, Menu Plus.

    #149797
    Tom
    Lead Developer
    Lead Developer

    Those add-ons have their own scripts and files, so they won’t be added to the core theme.

    The three that are integrated are all handled by the functions in the topic above, so they are integrated.

    The others would involve including other scripts and more files, which wouldn’t make GP very lightweight anymore.

    #149954
    Oleg

    Thanks for the info!

    #149997
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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