Viewing 1 replies (of 1 total)
  • Thread Starter kmessinger

    (@kmessinger)

    This now resolved. Just have to figure out how to style it. This is the correct code.

    <?php
    function twentyfourteen_all_scriptsandstyles() {
    //Load JS and CSS files in here
    
     wp_register_script ('quotes', get_stylesheet_directory_uri() . '/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' );

Viewing 1 replies (of 1 total)

The topic ‘Child theme functions calling double url’ is closed to new replies.