WordPress Snippets at WPcustoms

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://wpcustoms.net/snippets/load-googlefonts/
  function wpc_enqueue_styles() {
            wp_register_style('googleFonts', '//fonts.googleapis.com/css?family=Copse');
            wp_enqueue_style( 'googleFonts');