-
AuthorPosts
-
July 25, 2019 at 12:45 am #1121785
Hi there. I’ve written some code to create an html header for WooCommerce category pages. See the link in Private Content for an example. Look for the gray box that says Related Documents and Related Videos. Inside this header is a link to a Youtube video. When I click the link, it takes me to youtube.com rather than playing the video in a lightbox. If I insert the video link into the body of a page, the lightbox work fine though.
What do I need to do to add lightbox capability to these links?
Thanks!
KevinJuly 28, 2019 at 7:34 pm #1122538Hey Kevin,
Sorry for the late reply, to make your video links open in a lightbox please add this to the end of the link:?iframe=true
so the full link would look like this:
https://www.youtube.com/watch?v=eJ7al3jXx0c?iframe=true
If this doesn’t work for you then possibility the lightbox option is turned off in your theme options, please check here:
Enfold Theme Options > Theme Options > Lightbox Modal WindowBest regards,
MikeJuly 28, 2019 at 7:53 pm #1122546Thanks for your reply. That solution didn’t work. Also the lightbox modal window option is turned on and the console is clear of any javascript errors.
What else can we try?
July 28, 2019 at 8:28 pm #1122569Hi kevinmcgillivray,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJuly 28, 2019 at 11:42 pm #1122594Okay, thanks. See the private content…
July 29, 2019 at 2:31 am #1122601Hi,
Thanks for the login, I see now that this is a category page which has quite a few custom fields. I was able to confirm what you wrote above, the video links don’t work on the category page, but they do elsewhere. I have reviewed your theme settings and didn’t find anything amiss there. I recommended disabling your plugins to see if you can find the conflict.
Unfortunately, when there are no errors in the console, much of the debugging is trial and error. Things to look for are plugins or scripts that redirect links or if they have a built-in lightbox / modal popup.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.