Site logo

Archived topic

Was it a glitch with child theme

3 replies · Started by Yumei on January 5, 2022

Viewing posts 1–4 of 4

Hi, I'm new to Generate Press. Just got started with GP Premium and wanted to test out GP's child theme that I had downloaded. When I first attempted to install the child theme, I got an error--something about a missing 'style.css' file. So I followed the instructions and add the code below (to the parent functions.php:

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'generate-child' );
 }, 50 );

The child theme got installed with no issue. However, I noticed none of the CSS code I put into the child theme's style.css worked. After some tweaking, I removed the PHP code from the parent's functions.php file, and the child theme's style.css suddenly worked.

Is that just a one-time glitch? Or something else? I have only used GP locally.

Yes, I did download the child theme from the same link--and function.php and style.css were both in the folder. So it may just be a one-time glitch. Thanks!

No problem :)

This archived topic is closed to new replies.