prettyPhoto Edit for SSL

Hi guys,

We encountered a situation where running our BeTheme website on https, prettyPhoto was blocking YouTube video when clicking Call to Action play icon and prettyPhoto popup emerged. FireBug gave us "Blocked loading mixed active content" error.

Therefore, we edited the jquery.plugins.js file and changed http://youtube.com/embed/ to https://youtube.com/embed/ on line 53 and it corrected error. How can we implement this in a way that future updates to BeTheme does not override this? Thanks.

Comments

  • Hey,

    unfortunately this is external plugin which is related with plugin's author and there is nothing what we can do with that. We checked this file and you're right, there is many http:// hardcoded. The only way to keep this file is keep it on server with other naming, ex: _jquery.plugins.js and also you can keep it on computer and after each theme update you need to go back to your modified file. Or also just update theme but without this file. There is nothing else what we can recommend because this is technically not possible to do it other way.

    Thanks for understanding!
  • Possibility to deactivate script from parent theme and activate via child theme with the updates .js within child theme? If so, can you lead us in the right direction?

    In the past, for example, we changed a php function that was being called by header.php file. Where we put the revised edits in functions.php file under a different function name, and called upon it via new header.php in child theme. Not sure if this can be achieved as easily with this situation. Thoughts?
  • We looked on it already and we really sorry but this is not possible at all. This theme is much more complicated than you think and this thing just can`t be done. Sorry!
  • That's why we reached out to you! Thanks for the prompt responses guys
  • The JS file is obviously outdated by now, so how about you guys just do the fix yourselves. You just need to exchange the http by https in the script. This would save me a lot of headaches every time I deploy to https and update your theme.
  • @karlkroeber Like we wrote above, this plugin does not belong to us and we can not change it. We are simply not allowed to do this.
  • That's simply untrue: PrettyPhoto uses https://creativecommons.org/licenses/by/2.5/, you are free to adapt. And it kind of makes your theme a pain in the ass to use on HTTPS.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.