Group Admins

Plugins

Public Group active 4 years, 8 months ago ago

Talk about your favorite plugins and ask others for advice about finding or using Wordpress plugins

Easing Slider Plugin Loading

Tagged: 

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #1263
    Jay
    Participant

    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.

    #2148
    Steve
    Keymaster

    I only see it on the home page…

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

    #2149
    Margarete Koenen
    Participant

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

    #2150
    Jay
    Participant

    @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?”

    #2151
    Steve
    Keymaster

    @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.

    #2152
    Jay
    Participant

    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?

    #2153
    Steve
    Keymaster

    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.

    #2154
    Jay
    Participant

    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!

    #2155
    Steve
    Keymaster

    @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.

    #2156
    Jay
    Participant

    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″

    #2157
    Steve
    Keymaster

    whoops! Change line 25 to:

    function jake_add_scripts() {

    #2158
    Jay
    Participant

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

    please advise.

    #2159
    Jay
    Participant

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

    #2160
    Steve
    Keymaster

    The errors are gone?

    #2161
    Jay
    Participant

    yup! thanks!

Viewing 15 posts - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.