Hi rpendoley can you disable JavaScript Options in Autoptimize and empty the cache. Carry out a test to see if the Lightbox functions correctly?
Just tried that, but it didn’t solve the problem. However, when I enabled the JavaScript Options and clicked the “Add try-catch wrapping” option, it now takes you to the video on youtube, leaving my website entirely.
Thoughts?
Hi if you speak to Frank Goossens from Autoptimize he will be able to assist you further. Frank provides an excellent support for Autoptimize.
Regards
is disabling JS optimization doesn’t fix the problem, then AO’s JS optimization isn’t the problem.
but let me have a look 🙂
the problem is with AO’s config anyhow (weird it did not get solved when disabling JS optimization), as all is fine when going to your site with ?ao_noptimize=1 added to the URL (which disable AO for that request).
there are two things you can try;
1. try with “force JS into head”
2. add “jquery.js, jquery.prettyPhoto.js, vlpp_vars” (without the quotes) to the comma-seperated JS optimization exclusion list
hope this helps,
frank
Hi Frank,
Thanks so much for jumping in and sharing the suggestions. Unfortunately, the suggestions didn’t seem to solve the problem. I tried a combination of all of the things you suggested, then just each of them individually. The only thing that I’ve found that worked was deactivating the entire plugin. I love the plugin and appreciate the speed it brings to the site, so I don’t want to try to find something else, and this happened with W3TC, too.
Is there a way to exclude just this page from AO? Are there any code suggestions I should consider for the page construction? Here’s the relevant section:
<!--<a href="http://www.youtube.com/watch?v=N7SqaCOMZ2o" title=""><img src="https://thinkingbeyondborders.org/wp-content/themes/twentytwelve/images/feat-video.jpg" alt="YouTube" /></a> -->
<?php echo do_shortcode ('[video_lightbox_youtube video_id="N7SqaCOMZ2o" width="580" height="400" anchor="https://thinkingbeyondborders.org/wp-content/themes/twentytwelve/images/feat-video.jpg"]'); ?>
Unfortunately, I didn’t build this site and am a pretty amateur developer, so I’m not sure where to go from here.
Thanks again!
Robin
hmmmm … that begs the question; is the youtube-link in the HTML-comment block relevant? can you check the box next to “keep HTML comments” and see what happens?
frank
So, it turns out it was the CSS. I added the CSS file to the exclusion in Autoptimize, and it solved the problem.
Thanks so much for the help!
Robin
great! thanks for sharing the solution for future reference robin!
frank