Closed sakinshrestha closed 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:
scripts.php
ct_chosen_load_scripts_styles()
wp_register_script()
wp_enqueue_script()
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' );
This issue was moved to BenSibley/something#196
When registering and enqueueing scripts in
scripts.php
functionct_chosen_load_scripts_styles()
, you don't need to callwp_register_script()
andwp_enqueue_script()
. Just callwp_enqueue_script()
. This:Should be: