• I’ve got a handful of buttons that open YouTUbe video embeds using WP LightBox by inserting : rel=”wp-video-lightbpx” into the link.

    Example Code:

    <a class="popup button brown-button" href="https://www.youtube.com/watch?v=bzLOULYXvHM&rel=0" rel="wp-video-lightbox">Watch the Video</a>

    https://jim-flannery.com/stand-up/

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, have you tried adding width=100% to the HTML code of the src image? The other solution that might work for you is editing the following code located in the following file /js/jquery.prettyPhoto.js inside the plugin folder.

    if((pp_containerWidth > windowWidth)){
    	imageWidth = (windowWidth - 40);
    	imageHeight = (height/width) * imageWidth;
    }else if((pp_containerHeight > windowHeight)){
    	imageHeight = (windowHeight - 40);
    	imageWidth = (width/height) * imageHeight;
    }else{
    	fitting = true;
    };

    If the above does not work, there is not much more that can be done. This plugin is not fully responsive.

    You might like to try our other plugin WP Lightbox Ultimate.

    Kind regards

    • This reply was modified 7 years, 4 months ago by mbrsolution.
    Thread Starter flantascience

    (@flantascience)

    When you say “source image” do you mean the YouTube video? like this?

    <a class="popup button brown-button" href="https://www.youtube.com/watch?v=bzLOULYXvHM&rel=0" rel="wp-video-lightbox" width="100%">Watch the Video</a>

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, the source image is referring to an image if you are using one. Did the above instructions help you?

    Thread Starter flantascience

    (@flantascience)

    Still no luck – any other ideas?

    Plugin Support mbrsolution

    (@mbrsolution)

    I am afraid there is not much more I can help you with. You might like to try the pro plugin mentioned above.

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Popup is tiny on mobile’ is closed to new replies.