Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1248276

    I’m trying to embed a lightbox video player, but have to edit base.css because it’s not going to full screen when clicking on the lightbox.

    This is the code I have to edit:

    img, a img {
    border:none;
    padding: 0;
    margin:0;
    display:inline-block;
    max-width: 100%;
    height:auto;
    image-rendering: optimizeQuality;
    }

    What does this do exactly for the site? I don’t want anything to break, but I have to delete max-width: 100%; as mentioned below.

    #1249210

    Hey John,

    Thank you for the inquiry.

    The css code above sets the default style of the images in the site, so it should not have affected the video player inside the lightbox.

    Where are you testing this? Please provide the site or page URL so that we could check the elements.

    Best regards,
    Ismael

    #1249211

    It’s on the page below under Featured videos

    #1249219

    Hi John,

    Thank you for the quick update.

    Looks like you are using a different lightbox plugin. To make the lightbox container full width, we could add this code in the Quick CSS field or the child theme’ style.css file.

    #vidyard-popbox {
    	width: 100%;
    	height: 100%;
    }
    
    #vidyard-content-fixed {
    	z-index: 900;
    	text-align: center;
    	top: 0;
    	right: 0;
    	bottom: 0;
    	left: 0;
    	width: 100%;
    }

    Cheers!
    Ismael

    #1249415

    Hi Ismael, this works for the lightbox, but the thumbnail preview is showing stretched before you click on the video. Below is another one for example.

    #1249991

    Hi,

    Thank you for the update.

    We do not see an image preview when we try to open the player in the lightbox. The video automatically buffers or plays without displaying any image. Please check the screenshot below.

    // https://imgur.com/a/O2MDjq6

    This might require additional css adjustment but we have to check the elements first in order to provide the necessary code.

    Best regards,
    Ismael

    #1250089

    This is what I’m seeing. I provided a screenshot below. The video thumbnail is stretched for the lightbox videos. The video itself is fine once you click on it.

    #1250653

    So how would I edit this code so the player doesn’t do the below?

    #1250817

    Hi,

    Thank you for the info.

    That is not how we see the section or video preview on our end. Please check the Firefox screenshot below.

    Screenshot: https://imgur.com/LJVHLX7

    Which browser are you using, or where are you testing the site?

    Best regards,
    Ismael

    #1251000

    Hi, I was able to fix it within the video embed code by changing the height of the thumbnail. Thanks. You can close this.

    #1251258

    Hi,

    Great, I’m glad that you found a solution and thanks for the update. I’ll go ahead and close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Editing base.css for Lightbox video’ is closed to new replies.