[Resolved] Child style.css not working

Home Forums Support [Resolved] Child style.css not working

Home Forums Support Child style.css not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2218379
    cypyjh

    Hello,
    I’m using:
    WordPress 5.9.3
    GeneratePress Versión: 3.1.3

    All plugins disabled, including GP Premium

    Child theme downloaded from generatepress.com

    functions.php has only:
    <?php
    /**
    * GeneratePress child theme functions and definitions.
    *
    * Add your custom PHP in this file.
    * Only edit this file if you have direct access to it on your server (to fix errors if they happen).
    */

    Custom CSS – empty
    Child theme style.css has only:

    .entry-title h1 {
    font-size: 120px;
    }

    does nothing!

    #2218404
    David
    Staff
    Customer Support

    Hi there,

    the CSS selector is incorrect instead of: .entry-title h1 it is: h1.entry-title

    But you can use the Customizer > Typography to style that.

    #2218502
    cypyjh

    Sorry, it was my mistake. I didn’t activate the child theme XD!

    You can delete this topic.

    Sorry, sorry, sorry.

    #2218512
    David
    Staff
    Customer Support

    GP does all the work for you.
    Just download the blank child theme from here:

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

    Install and activate, then add to the styles.css – don’t do any enqueueing for the stylesheet in your functions as GP does that already.

    #2218644
    cypyjh

    Sorry, I have edited my comment. It was my mistake. Sorry!

    #2219369
    David
    Staff
    Customer Support

    No need for sorries 🙂
    Glad to hear you got it working!

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