I'm not new to WordPress and using WordPress over 4 years. I want add extra external CSS from specific URL.
I know how to add CSS from my theme.
But I want add extra external CSS before style.css How to do this in genesis framework.
I'm not new to WordPress and using WordPress over 4 years. I want add extra external CSS from specific URL.
I know how to add CSS from my theme.
But I want add extra external CSS before style.css How to do this in genesis framework.
Your Problems is single quotes
add_action( 'wp_enqueue_scripts', 'my_stylesheet' );
function my_stylesheet() {
wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' );
}
Here's an example of including fontsawesome stylesheet using external url from their CDN.
add_action( 'wp_enqueue_scripts', 'my_stylesheet' );
function my_stylesheet() {
wp_enqueue_style( 'custom-style', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' );
}