BenSibley / Chosen

Chosen WordPress Theme
https://www.competethemes.com/chosen/
3 stars 0 forks source link

Enqueue Google Font #6

Closed sakinshrestha closed 8 years ago

sakinshrestha commented 8 years ago

When registering and enqueueing scripts in scripts.php function ct_chosen_load_scripts_styles(), you don't need to call wp_register_script() and wp_enqueue_script(). Just call wp_enqueue_script(). This:

wp_register_style( 'ct-chosen-google-fonts', '//fonts.googleapis.com/css?family=Playfair+Display:400|Raleway:400,700,400italic' );
wp_enqueue_style( 'ct-chosen-google-fonts' );

Should be:

wp_enqueue_style( 'ct-chosen-google-fonts', '//fonts.googleapis.com/css?family=Playfair+Display:400|Raleway:400,700,400italic' );
BenSibley commented 8 years ago

This issue was moved to BenSibley/something#196