Easing Slider Plugin, Changing how, or where, it loads

I’m using the Easing Slider Plugin on [url=“http://www.bandstorage.com”]this site. 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. Still waiting to hear back.

Well, ideally just place it on the home page template, but that may not be so easy if you are using a CMS. (Depends how the CMS works, but perhaps an if statement in PHP?)

Another option is to leave it in the header for every page, but just change the link from an absolute link

http://bandstorage.com/wp-content/plugins/easing-slider/css/slider.css?ver=1.1.9

to a root-relative one:

/wp-content/plugins/easing-slider/css/slider.css?ver=1.1.9

the CMS i’m using is WordPress. But i’m not really making use of the index.php template file. I created a page and in my Reading Settings, I selected this page under the “Front page displays” setting.

Within the text editor of this page is the following:


[easingslider]
<hr /><a href="/shop/cello-display-rack/">
[caption id="attachment_81" align="alignleft" width="220" caption="The Band Room&#8482; Series Cello Storage Rack"]<img class="size-full wp-image-81" title="Cello Instrument Storage" src="/wp-content/uploads/cello-storage.gif" alt="Cello Instrument Storage" width="220" height="240" />[/caption]
</a>
<h1><a href="/shop/cello-display-rack/">Shop For Cello Storage Racks</a></h1>
etc...

please advise. thanks.

fyi, I just got this response from the plugin author:

[I]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.[/I]

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

That doesn’t seem to have much to do with the jQuery. Not sure what it’s for.

EDIT: or is [easingslider] the only code you use to place in the slider code? If so, maybe try grabbing the generated code (view source on the live page) and put the code directly in the template, changing the URL to a root-relative one.

[easingslider] is just the shortcode that i paste in to the text editor portion of the page that I selected to be the homepage.

someone suggested to me that I go through the plugin, find where he is loading the scripts, and wrap them a conditional statement that only loads them on the homepage.

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

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!

please advise. thanks!

fixed it… I added this to my functions.php file: http://pastebin.com/QV3g41ew

This code removes the slider JS and CSS, and then loads it only if on the Home page.

Great, glad you sorted it. :slight_smile: