2

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.

Jessica Guerard
  • 386
  • 3
  • 16
Menon Jats
  • 317
  • 3
  • 14

2 Answers2

1

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' );
    }
bhavesh vala
  • 873
  • 7
  • 14
0

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' );
}