• Resolved Marius Schulte

    (@mariusiscoding)


    I have a problem on my sites, the issue exists on multiple pages of me:

    If a page has more then one YouTube video:
    – The first one is displayed correctly
    – All others are positioned the height of the thumbnail below the actual position until I click on accept. Then the position is correct again.

    See Screenhot:
    https://snipboard.io/gp5axW.jpg

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @mariusiscoding,

    There’s a padding-top:56.25% that has some issues, quick fix is some CSS:

    .video {
        padding-bottom: 20px;
        padding-top: 45px!important;
    }

    But there’s still a point of parsing and updating the status on 30+ YouTube videos that causes a performance issue.

    If you could, is there a page builder you’re using , a theme block for videos or an iFrame? If the latter, could you show me a snippet of one video?

    Maybe I can have a look how to optimize your page.

    regards Aert

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @mariusiscoding,

    Are there any further updates about this? Have you already been able to test the suggestion(s) as provided by @aahulsebos?

    Let us know if we can help.

    Kind regards, Jarno

    Thread Starter Marius Schulte

    (@mariusiscoding)

    Works ok when the video is blocked, but if block accepted the videos are only 25px in height.

    Which class I need to make them the same size again?

    https://snipboard.io/pUrldK.jpg

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @mariusiscoding,

    I think replacing the above with this CSS should work, it sets the padding-top back to the original 56.25% when consent is obtained.

    .video {
        padding-bottom: 20px;
        padding-top: 45px!important;
    }
    
    .cmplz-marketing .video {
        padding-bottom: 20px;
        padding-top: 56.25%!important;
    }

    Kind regards, Jarno

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘YouTube Video bug’ is closed to new replies.