Child theme functions calling double url
-
This
<?php function twentyfourteen_all_scriptsandstyles() { //Load JS and CSS files in here wp_register_script ('quotes', get_stylesheet_directory_uri() . 'onceagreenberet.com/wp-content/themes/twentyfourteen/js/quotes.js', array( 'jquery' ),'1',false); wp_register_style ('quotes', 'http://onceagreenberet.com/wp-content/themes/twentyfourteen-child/style.css', array(),'2','all'); wp_enqueue_script('quotes'); wp_enqueue_style( 'quotes'); } add_action( 'wp_enqueue_scripts', 'twentyfourteen_all_scriptsandstyles' );results in this.
Failed to load resource: the server responded with a status of 404 (Not Found) http://onceagreenberet.com/wp-content/themes/twentyfourteen-childonceagreenberet.com/wp-content/themes/twentyfourteen/js/quotes.js?ver=1
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Child theme functions calling double url’ is closed to new replies.