Plugins
Public Group active 4 years, 8 months ago agoTalk about your favorite plugins and ask others for advice about finding or using Wordpress plugins
Easing Slider Plugin Loading
Tagged: easing slider
- This topic has 23 replies, 3 voices, and was last updated 11 years, 5 months ago by
Jay.
-
AuthorPosts
-
September 15, 2011 at 12:46 pm #1263
Jay
ParticipantI’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.
September 15, 2011 at 1:43 pm #2148Steve
KeymasterI only see it on the home page…
Instead of the shortcode, I would use the PHP function:
easing_slider();September 15, 2011 at 1:47 pm #2149Margarete Koenen
ParticipantIs there a page for general settings? It would probably be listed under settings in your dashboard. You would look there first.
September 15, 2011 at 5:01 pm #2150Jay
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?”
September 15, 2011 at 6:36 pm #2151Steve
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.
September 15, 2011 at 7:58 pm #2152Jay
ParticipantI’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 RESPONSEthat being said, is there a way to get the URL in the same manner but with HTTPS?
September 16, 2011 at 12:31 am #2153Steve
KeymasterIt 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.
September 16, 2011 at 1:01 pm #2154Jay
ParticipantThese 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/nUWVF533based 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!
September 16, 2011 at 3:44 pm #2155Steve
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.
September 16, 2011 at 5:18 pm #2156Jay
Participantgreat. 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″
September 16, 2011 at 6:52 pm #2157Steve
Keymasterwhoops! Change line 25 to:
function jake_add_scripts() {
September 16, 2011 at 8:50 pm #2158Jay
Participantstill getting the same error message with that change: http://pastebin.com/Ae8S6BEX
please advise.
September 16, 2011 at 8:54 pm #2159Jay
Participantcorrection. its working now! thanks so much!!!!!!!!!
September 17, 2011 at 7:00 pm #2160Steve
KeymasterThe errors are gone?
September 18, 2011 at 2:15 pm #2161Jay
Participantyup! thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.