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
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:
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.
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!