[Support request] Load style.css of the child theme after customizer styles.

Home Forums Support [Support request] Load style.css of the child theme after customizer styles.

Home Forums Support Load style.css of the child theme after customizer styles.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #704265
    Jesús

    Hello,

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

    Thanks.

    GP Premium 1.7.2
    #704345
    Tom
    Lead Developer
    Lead Developer

    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 🙂

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