Load GoogleFonts

This enqueue style action registers custom css stylesheets. The http: part has been removed to make it also available for https:// SSL urls. The visitors browsers will determine if http or https and correctly load the google font. Replace ‘Copse’ with your desired font name: https://www.google.com/fonts

/**
 * Snippet Name: Load GoogleFonts
 * Snippet URL: https://www.wpcustoms.net/snippets/load-googlefonts/
 */
  function wpc_enqueue_styles() {
            wp_register_style('googleFonts', '//fonts.googleapis.com/css?family=Copse');
            wp_enqueue_style( 'googleFonts');
        }
 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x