Site logo

Archived topic

Load style.css of the child theme after customizer styles.

1 reply · Started by Jesús on October 18, 2018

Viewing posts 1–2 of 2

Hello,

I´m using generatepress child-theme and I want to load style.css of the child theme after customizer styles.

Thanks.

Give this function a shot:

add_action( 'wp_enqueue_scripts', function() {
    wp_dequeue_style( 'generate-child' );
    wp_enqueue_style( 'generate-child', get_stylesheet_uri(), array( 'generate-style' ), filemtime( get_stylesheet_directory() . '/style.css' ), 'all' );
}, 100 );

Let me know :)

This archived topic is closed to new replies.