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.