# Make lazyYT plugin responsive easily

**URL:** <https://meta.discourse.org/t/make-lazyyt-plugin-responsive-easily/24143>\
**Category:** Feature\
**Created:** [Janeiro 18, 2015, 7:16am UTC](https://meta.discourse.org/t/make-lazyyt-plugin-responsive-easily/24143 "2015-01-18T07:16:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![chapel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapel/32/122414_2.png) [@chapel](https://meta.discourse.org/u/chapel)\
**Post date:** [Janeiro 18, 2015, 7:16am UTC](https://meta.discourse.org/t/make-lazyyt-plugin-responsive-easily/24143/1 "2015-01-18T07:16:07Z")

</div>

Continuing the discussion from [How to re-generate all topics?](https://meta.discourse.org/t/how-to-re-generate-all-topics/24142):

> [@iroller](#):
>
> Hi. I’ve updated lazyYT plugin with the following data:
> 
> ```
> - replace:
> filename: /var/www/discourse/plugins/lazyYT/plugin.rb
> from: /data-width=\\"480\\" data-height=\\"270\\"/
> to: data-ratio=\"16:9\"
> 
> ```
> 
> Now I need all the topics to pick up changes (manual edit+save works fine). Is there an easy way of doing it in console?

I had wanted to do similar, but found a simpler way of implementing what I wanted without messing with the ruby files.

Specifically this will make all embedded lazyYT Youtube videos responsive and 16:9 taking up most of the post width.

Add the following snippet to your Customize CSS section:

```css
.lazyYT {
    height: 0 !important;
    width: 100% !important;
    padding-bottom: 56.25% !important;
}

```

---

_[View the full topic](https://meta.discourse.org/t/make-lazyyt-plugin-responsive-easily/24143)._
