Child theme style.css file not working

Home Forums Legacy Support Support queries Child Themes Child theme style.css file not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #381554
    gbac
    Participant
    Hello, The child theme's style.css file doesn't work in my case, I'm using the custom css section of the admin customizer, but I prefer to use the child theme's css. Any clue why it doesn't work? Thanks
    #381612
    Veronica
    Moderator
    hi we are using this code:
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 11 );
    function my_theme_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_uri() );
    }
    to enqueue the style sheet it should work may be you have missed something while installing the child theme?
    #381650
    gbac
    Participant
    Perfect! The code was missing in my functions.php Thank you very much
    #381667
    Veronica
    Moderator
    good to know this is working for you
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Child theme style.css file not working’ is closed to new replies.