PDA

View Full Version : Resolved nivoslider https help



ianhaney
09-07-2016, 02:03 PM
Hi

I just set up a SSL on a website domain and it has stopped the nivoslider from working on https url but works on non https url

it does seem to be a common issue with https and nivoslider and just seeing if anyone knows how to solve it, I am forcing the site to use https in the htaccess file, I have cleared the cache as well and nothing seems to work

Thank you in advance

jscheuer1
09-07-2016, 02:24 PM
I have no experience with this specifically. In general though, migrating anything to an SSL requires that all resources, images, scripts, css, etc. also originate from an SSL. So, for example, if you're using a script library (like jQuery maybe) from another domain, it must also be hosted on an SSL. But one must also make sure that all the local resources required by the slider are on your SSL. And there's always the possibility that the slider code barfs on the string 'https' or the protocol https for some reason, intentionally or otherwise, though that seems unlikely.

If you want more help, please post a link to the problematic page.

ianhaney
09-07-2016, 02:26 PM
Hi

Sorry just sussed it, I just updated the js googleapis file to use https so is now the following in case anyone else needs to know how to solve it

FROM
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>

TO

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>

jscheuer1
09-07-2016, 02:39 PM
Right, exactly what I was saying - all resources must be SSL (https). You can also use:


<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>

and the browser will fill in the current protocol of the page. This only works on a live page though, as any local page or localhost server page will fill in that protocol and of course, Google doesn't host things on your computer or localhost server.