Black Friday Sale! Get up to $40 off GP Premium!Learn more

Reply To: Load child theme css after plugin stylesheets

Home Forums Support Load child theme css after plugin stylesheets Reply To: Load child theme css after plugin stylesheets

#184107
Tom
Lead Developer
Lead Developer

Absolutely!

add_action( 'wp_enqueue_scripts', 'my_custom_scripts', 500 );
function my_custom_scripts() 
{
    // Bail if we're not on the front page
    if ( ! is_front_page() )
        return;

    wp_enqueue_style( 'my-custom-style', 'URL TO YOUR STYLESHEET', false, '1.0', 'all' );
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

Let me know if you need more info 🙂

  • This reply was modified 4 years, 7 months ago by Tom.