thunderbird / thunderblog

A simple, responsive, mobile-first Wordpress theme for the Thunderbird Blog
https://blog.thunderbird.net
MIT License
9 stars 5 forks source link

Enable "Full Width" on YouTube embeds #60

Closed LinuxForEveryone closed 4 months ago

LinuxForEveryone commented 5 months ago

Wordpress supports YouTube embeds, along with multiple alignment settings for those code blocks. Currently, the only alignment options are "left / center / right." We need to have "Full Width" enabled so that video embeds will consume the full width of the page and scale accordingly, similar to how images behave.

Wordpress documentation says this needs to be enabled on the Theme level.

Current example in CMS:

image

Output on published blog:

image

devmount commented 5 months ago

Yes, shouldn't be too hard. I'll take a look at that tomorrow

devmount commented 4 months ago

Hi Jason, I added support for full-width embeds in #63. Once that is merged and released, you can set the newly available block options for align-wide or align-full, which both will make the youtube embed as wide as the surrounding text.