Site logo

[Support request] When to create a child theme

Home Forums Support [Support request] When to create a child theme

Home Forums Support When to create a child theme

  • This topic has 8 replies, 3 voices, and was last updated 5 years ago by David.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1713740
    Adrian

    Hey, it looks like this: I’d like to create my WordPress theme look from scratch. I have installed the GeneratePress theme and the premium plugin.

    Should I design a theme first and then create a child theme that will take the current look? Or maybe it’s better to create a child theme at the very beginning and create the whole look there?

    Will updates to your theme / plugin break my website?

    I just don’t understand when to create a child theme.

    #1713866
    David
    Staff
    Customer Support

    Hi there,

    a Child Theme is ONLY required if you intend to make edits to the theme template files.
    If you’re simply making changes via the Customizer and adding Content to your site then there is no need for a child theme.

    #1713957
    Adrian

    Sorry, but I am just starting my adventure with WordPress and it is a bit incomprehensible to me.

    So your GeneratePress theme is really just the foundation for creating our own themes, right?

    I am going to create a more advanced header and I am not able to achieve this with the Customizer. So I’ll probably have to edit the header.php file. So: I make changes in this file and then create a child theme?

    Will GeneratePress theme updates overwrite the header.php file?

    #1714305
    David
    Staff
    Customer Support

    WordPress provides the Database and Code setup for controlling the storage and output of your content.
    The Theme provides the templates for that content to be displayed.
    GPP Premium provides you with additional Customizer options and other features such as the Elements module for customizing the theme.
    What GP doesn’t do is create Themes. It is the foundation for creating your own sites.

    If you must edit the header.php file then yes, you would need to first add a child theme:
    https://docs.generatepress.com/article/using-child-theme/

    Then make a copy of the header.php file and place that in your child themes root folder.
    Then make edits to the child theme header.php file ( Not the parent theme ).

    Do you have an example of the header your trying to build – as you may not require a child theme to achieve it ?

    #1714337
    Adrian

    I will send you a link to the sample menu that I want to achieve. I will add them in a private message due to the fact that it is from a different theme.

    It may be that I just haven’t discovered all the possibilities of this plugin template yet. I bought it only today, I pre-searched all the options and I don’t know how to go about it from the Customizer level.

    What I’m trying to accomplish is a header of three rows. There is maybe a way to create such a header? Some place where i can add html code

    #1714724
    Elvin
    Staff
    Customer Support

    Hi there,

    The example header you’re trying to achieve should be doable by either:

    Enabling the Top bar section and the Secondary navigation PLUS bit of CSS and PHP.

    OR,

    Using the GP Premium 2.0’s new Block Template to create your fully custom header.
    https://share.getcloudapp.com/llu5vR7E

    There’s no need for child theme for this.

    #1716259
    Adrian

    Thank you very much for your answer. I think I’m on the right track and this header is slowly starting to look like it should.

    I don’t know if I should create a separate topic, but I’m also wondering how to do:

    1. Woocommerce mini-cart icon added to the header created in the Elements GeneratePress section. In other topics on this forum I read that the mini-cart icon can only be added in the Main Menu and Secondary Menu. But when creating the header using Elements, I would like it to look different and add the icon elsewhere. I will send you the link to the header that he is modeling on. As you can see, it can be found next to the search form, wishlist and my account.

    2. Is it possible to add a log in / log out button, which changes depending on whether the user is already logged in to the website? I’ve seen that there are a couple of plugins that allow you to add this option to a menu, but as soon as the GeneratePress Elements section imports the menu, it becomes permanent. The button does not change automatically, it just shows “Log out” itself, for example, or adds two buttons next to each other “Log in” and “Log out”. This example is also in the link I sent.

    I don’t know if there is a chance to do something like this, but if it works, it will be great. Thank you very much for your willingness to help and have a nice day!

    #1716273
    Adrian

    Aaa, I also noticed that even when the mini-cart icon with woocommerce appears in the menu, nothing happens when you hover over it. How to enable the quick preview of what products are in the cart? Currently I need to click on the cart to be taken to the cart page. What I expect is the most common drop-down menu with added products, their quantity, the ability to remove this product from the cart, etc.

    #1716315
    David
    Staff
    Customer Support

    Hi there,

    in Customizer > Layout > Woocommerce check the: Display Mini Cart Sub Menu

    https://docs.generatepress.com/article/woocommerce-overview/

    I recommend raising new topics for each new requirement as it will make it easier for your and others to find the specific answers 🙂

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