[Support request] [Child-Theme] How to install and edit

Home Forums Support [Support request] [Child-Theme] How to install and edit

Home Forums Support [Child-Theme] How to install and edit

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by David.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1492713
    Gustavo E.

    Hello, I am using the versions generatepress 3.0.2 and GP Premium 1.12.2 .
    I have a question about an instruction you recommend in the documents.
    https://docs.generatepress.com/article/child-theme-issues/

    function example_enqueue_styles() {
    	wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css');
    }
    add_action('wp_enqueue_scripts', 'example_enqueue_styles');

    1-The code must be removed from the subject child?
    2- Should this code be removed from the parent theme?

    And like the PHP functions in the parent theme, they should be copied blank, and then added to whatever one wants to edit?

    #1492867
    David
    Staff
    Customer Support

    Hi there,

    Install the blank child theme we supply here:

    https://docs.generatepress.com/article/using-child-theme/#installing-a-child-theme

    You do not need to remove anything from the Child Theme and your MUST NOT make any changes to the parent theme.

    You can then add functions to you child theme functions.php and CSS to your child themes styles.css

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