• Resolved sanderwit

    (@sanderwit)


    Hi Phi,

    Thanks for making this addon, it works great. I have a single issue and that is that I want to embed videos with a different aspect ratio from 16×9, like square or even 4×5. Is there a way to achieve this? I’ve tried with custom css but the YouTube player that is loaded upon click would be different and I can’t find a way around it.

    Here is the page I am working on: https://www.sanderwit.nl/

    Thanks!

    Sander

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Phi Phan

    (@mr2p)

    Hi Sander @sanderwit,

    There is no setting for the ratio in the current version. I’ll add this feature in the next version soon. Thank you for the feedback. I’ll update you in this thread when it’s ready. For now, you can add a custom css for a square video like follows:

    .wp-block-boldblocks-youtube-block .yb-player:after {
      padding-bottom: 100%;
    }

    Phi.

    • This reply was modified 11 months, 1 week ago by Phi Phan.
    Plugin Author Phi Phan

    (@mr2p)

    Hi Sander?@sanderwit,

    I have just added a release that supports custom aspect ratios for videos. If you still need this feature, you can get it from the latest release, 1.0.3.

    Phi.

    Thread Starter sanderwit

    (@sanderwit)

    Awesome, great work Phi! I’ll try it out, thanks for the message.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Aspect ratio’ is closed to new replies.