Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Denis-thailand

    (@denis-thailand)

    The slide show is installed by widget primary area, but only showing on my home page, when on any other page a blank box appears.
    Home page: https://isaan-news.services-thai.com
    Bars Directory Page: https://isaan-news.services-thai.com/?page_id=705
    You can see the blank Box top right.

    Plugin Author Josh Leuze

    (@jleuze)

    The slideshow is hidden on both pages for me. There is a JavaScript error on those pages caused by a JavaScript conflict with your theme.

    Your theme is using the jQuery shortcut “$”, instead of the full “jQuery” version. WordPress loads jQuery in noConflict mode, so the “$” shortcut won’t work with jQuery. If you replace the shortcuts in “javascript.js” or wrap it like this, it will work:

    jQuery(document).ready(function($) {
        // Inside of this function, $() will work as an alias for jQuery()
        // and other libraries also using $ will not be accessible under this shortcut
    });
    Thread Starter Denis-thailand

    (@denis-thailand)

    I have tried inserting this code in this and a few other ” JS ” files without success.
    I did look at 3 javascript.js and done a search “$” never found any.
    /wp-content/themes/news-magazine/scripts/javascript.js

    I think the above one is the JS you were referring to?
    Here the first 22 lines: Maybe in the wrong place?????
    ————————————————————–

    jQuery(“document”).ready(function(){
    jQuery(’embed,object,iframe’).wrap(“<div class=’video-container’></div>”);

    jQuery(document).ready(function($) {
    // Inside of this function, $() will work as an alias for jQuery()
    // and other libraries also using $ will not be accessible under this shortcut
    });

    jQuery(‘li:has(> ul)’).addClass(‘haschild’);

    jQuery(“#top-nav > div > ul li”).hover(function(){
    if(jQuery(this).parents(“.container”).hasClass(“phone”) ){return false;}
    jQuery(this).parent(“ul”).find(“ul”).slideUp(5);
    jQuery(this).parent(“ul”).children().removeClass(“active”);
    jQuery(this).addClass(“active”);
    if(jQuery(this).find(“ul”).length){jQuery(this).children(“ul”).slideDown(“slow”).addClass(“opensub”);}
    },function(){
    if(jQuery(this).parents(“.container”).hasClass(“phone”)){return false;}
    jQuery(this).parent(“ul”).children().removeClass(“active”);
    jQuery(this).parent(“ul”).find(“ul”).slideUp(50);
    jQuery(“.opensub”).removeClass(“opensub”);
    });

    Plugin Author Josh Leuze

    (@jleuze)

    It looks like you got that JS file updated and the slideshow working?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘slide show only showing on home page’ is closed to new replies.