Pārlūkot izejas kodu

Merge pull request #674 from GabrielGil/patch-1

Change the styles hook
Eddie Machado 11 gadi atpakaļ
vecāks
revīzija
611c04e810
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      functions.php

+ 2 - 3
functions.php

@@ -239,11 +239,10 @@ can replace these fonts, change it in your scss files
 and be up and running in seconds.
 and be up and running in seconds.
 */
 */
 function bones_fonts() {
 function bones_fonts() {
-  wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic');
-  wp_enqueue_style( 'googleFonts');
+  wp_enqueue_style('googleFonts', 'http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic');
 }
 }
 
 
-add_action('wp_print_styles', 'bones_fonts');
+add_action('wp_enqueue_scripts ', 'bones_fonts');