Home › Forums › Support › Load child theme css after plugin stylesheets › Reply To: Load child theme css after plugin stylesheets
April 4, 2016 at 9:58 am
#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 8 years, 6 months ago by Tom.