Easing Slider Plugin Loading (24 posts)

Topic tags: easing slider
  • Profile picture of Jake Jake said 1 year, 8 months ago:

    I’m using the Easing Slider Plugin (http://www.easingslider.matthewruddy.com/) on this site: http://www.bandstorage.com. The slider is great! However, I’m having one problem with it.

    I only have the slider on the homepage of the site. The shortcode [easingslider] is pasted in the text editor portion of the homepage. Yet, all other pages of the site load Easing Slider code in the section. This causes big problems on my checkout pages. Easing slider is loaded with HTTP but my SSL checkout requires HTTPS loading.

    Please advise how I can stop the slider from loading the HTTP code on pages other than the homepage. Is there a way to change the code to HTTPS? Or to just remove it from the other pages?

    Thanks.

    FYI, I’ve written the plugin author, but no response thus far.

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    I only see it on the home page…

    Instead of the shortcode, I would use the PHP function:
    easing_slider();

  • Profile picture of Margarete Koenen Margarete Koenen said 1 year, 8 months ago:

    Is there a page for general settings? It would probably be listed under settings in your dashboard. You would look there first.

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    @Steve – if you firebug any page other than the homepage, you’ll see easing-slider code in the head section. very bizarre since i only have the shortcode [easingslider] within the text editor of the page thats set as Home.

    The instructions say that if I wanted to use the PHP function, it would go in one of the template files. But then wouldnt it also appear in every single page? I only want it to appear in the body/text portion of the page that I designated as Home.

    @Margaret – yes there are settings but they all have to do with size and shape of the slider. The only technical question asks “Load Jquery?”

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    @jake– not sure what you are referring to.

    The slider is wrapped in the #lof-container div. That div only appears on the home page.

    If you’re referring to the CSS and JS that gets loaded on every page, that’s a coding issue with the plugin. But I doubt it will effect much unless this is a high volume site.

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    I’m referring to the CSS and JS. It’s not a high volume site. But regardless, its triggering security red flags for shoppers when viewing proceeding through checkout in IE or Chrome.

    I just got this response from the plugin author:

    BEGIN PLUGIN AUTHOR RESPONSE
    Due to the way Wordpress has its script loading system implemented, it is impossible to specific the SCRIPT tags to only load where the slider is used. Instead, Wordpress only allows developers to load the SCRIPT’s on all pages and not just a specific one. It is a huge drawback, but until they design a system that allows us to do otherwise its stuck that way.

    I personally know very little about HTTPS and I’m not sure how you can go about fixing this. The plugin uses the constant WP_PLUGIN_URL (as can be seen on line 42 of the admin.php file inside the Premium Slider’s files) to get the current site URL. If you can find a way to get the URL in the same manner but with HTTPS, then you could simply change that little bit of code. Again, I’m not sure what Wordpress do to accommodate this and I’m very sorry that I cannot advise you in a better manner.
    END PLUGIN AUTHOR RESPONSE

    that being said, is there a way to get the URL in the same manner but with HTTPS?

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    It would probably be easier for you to go through the plugin, find where he is loading the scripts, and wrap them a conditional statement that only loads them on the homepage.

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    These are the files that constitute the plugin:

    easing-slider/easingslider.php (active) – http://pastebin.com/FyBcBc91
    easing-slider/css/tabs.css (inactive) – http://pastebin.com/LDrKkb0s
    easing-slider/css/slider.css (inactive) – http://pastebin.com/mib3ELJ8
    easing-slider/js/script.js (inactive) – http://pastebin.com/whNWD013
    easing-slider/js/uploadimagebutton.js (inactive) – http://pastebin.com/bFyBsqas
    easing-slider/js/jquery.js (inactive) – http://pastebin.com/S2aHUkS4
    easing-slider/js/jquery.easing.js (inactive) – http://pastebin.com/ku8ECrjh
    easing-slider/readme.txt (inactive) – http://pastebin.com/nUWVF533

    based in your comments, i would guess I need to do something to the /js/script.js file? though that file is listed as inactive. we’re pushing the limits of my technical comprehension here so i appreciate you bearing with me!

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    @jake — try adding this to your functions.php file: http://pastebin.com/QV3g41ew

    Essentially this code removes the slider JS and CSS, and then loads it only if on the Home page. It hasn’t been tested.

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    great. though i’m having difficulty with the formatting of the php paste. i already have the following code in my child theme’s functions.php file: http://pastebin.com/hdk9ULtv

    i’m guessing i don’t just hit return twice then paste in the code you provided. i tried that (http://pastebin.com/cUVzguh0) and I got an error message that read ” Parse error: syntax error, unexpected ‘{‘, expecting ‘(‘ in /home/content/v/i/n/vintagetwin/html/bandstorage/wp-content/themes/twentytenchild/functions.php on line 25″

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    whoops! Change line 25 to:

    function jake_add_scripts() {

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    still getting the same error message with that change: http://pastebin.com/Ae8S6BEX

    please advise.

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    correction. its working now! thanks so much!!!!!!!!!

  • Profile picture of Steve Steve said 1 year, 8 months ago:

    The errors are gone?

  • Profile picture of Jake Jake said 1 year, 8 months ago:

    yup! thanks!