Reply To: Loading a stylesheet before the theme css files

Home Forums Support Loading a stylesheet before the theme css files Reply To: Loading a stylesheet before the theme css files

Home Forums Support Loading a stylesheet before the theme css files Reply To: Loading a stylesheet before the theme css files

#192305
Tom
Lead Developer
Lead Developer

Hi there,

You could set a high priority to your enqueue function:

add_action( 'wp_enqueue_scripts','your_custom_scripts', 1 );
function your_custom_scripts()
{
    wp_enqueue_style( 'w3', 'URL TO THE FILE', false, '1.0', 'all' );
}

Something like that should do it 🙂