Archived topic
[Child-Theme] How to install and edit
1 reply · Started by Gustavo E. on October 16, 2020
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?
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