Site logo

[Resolved] Was it a glitch with child theme

Home Forums Support [Resolved] Was it a glitch with child theme

Home Forums Support Was it a glitch with child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2070316
    Yumei

    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.

    #2070543
    Leo
    Staff
    Customer Support

    Hi there,

    That sounds strange. Did you download the child theme from here?
    https://docs.generatepress.com/article/using-child-theme/

    If so there is definitely a function.php and style.css file in the .zip folder.

    That function is only needed if you don’t want to load the style.css file in the child theme:
    https://docs.generatepress.com/article/using-child-theme/#avoid-loading-style-css-of-the-child-theme

    #2071328
    Yumei

    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!

    #2071774
    Leo
    Staff
    Customer Support

    No problem 🙂

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