WordPress.org

Forums

[resolved] Easing Slider not loading..not sure how fix jQuery (3 posts)

  1. mikkai
    Member
    Posted 3 years ago #

    Hi there,

    The Easing Slider is permanently in the "loading" mode and will not load pics. I've been reading up and down this forum and think it MAY be a case of jQuery loading twice. I have no idea HOW to check if it is loading twice and causing a conflict. Just started using WP a few weeks back, so pretty new to all this. I am using the Colorway theme. Any pointers at all would be appreciated!!

    Thanks in advance for the help!

    http://www.fancyfascinators.com

  2. kryptosuperdog
    Member
    Posted 3 years ago #

    If jQuery is hardcoded into your theme files this may cause plugins that rely on jQuery to break as reloading the jQuery library a second time overwrites previously loaded jQuery plugin files.

    To avoid this you can add jQuery via your functions.php file using a built-in WordPress function. This will coordinate between all of the files that require the library to ensure that only one version is loaded. The default code below will load jQuery from the version that is packaged with the WordPress core files.

    Add the following code to functions.php:

    add_action('template_redirect','custom_theme_files');
    
    function custom_theme_files() {
        wp_enqueue_script( 'jquery' );
    }

    Hopes this helps

  3. mikkai
    Member
    Posted 3 years ago #

    Thanks so much! I appreciate the help!

Topic Closed

This topic has been closed to new replies.

About this Topic