Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!
    Kevin

    #1122538

    Hey 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 Window

    Best regards,
    Mike

    #1122546

    Thanks 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?

    #1122569

    Hi 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,
    Victoria

    #1122594

    Okay, thanks. See the private content…

    #1122601

    Hi,
    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.