Responsive YouTube block?
Permalink
Hi, is it possible to insert Youtube videos in a way that they become responsive? Eg: I added a video to my website, and it looks fine on a computer screen. However, when I check it our on my iPhone, it's just way too big and it's not responsive.
I would like the video to scale, maybe using a percentage value instead of width and hight value?
Thanks!
I would like the video to scale, maybe using a percentage value instead of width and hight value?
Thanks!
You can create a costume template for core youtube block and include jquery fitvids (http://fitvidsjs.com/) inside the template. plugin do the job for you.
Hi, thanks for your rey. I'm not sure I uderstand how I should do this. Would it be possible for you to write a step by step? Let me know and thanks again.
Check this tutorial, it explains how to create a costume template for a block:
http://www.concrete5.org/documentation/how-tos/designers/customize-...
http://www.concrete5.org/documentation/how-tos/designers/customize-...
https://www.concrete5.org/marketplace/addons/quickie-player/
already an add-on to do this.
already an add-on to do this.
I just yesterday wrote a how-to tackling this problem:
http://www.concrete5.org/documentation/how-tos/designers/make-all-y...
You can add that CSS in the theme customization, and it will make all your YouTube embeds responsive.
http://www.concrete5.org/documentation/how-tos/designers/make-all-y...
You can add that CSS in the theme customization, and it will make all your YouTube embeds responsive.
Nice! My Enlil Youtube package uses a similar approach as well.
Thank you VERY much for sharing that!
Thanks for this.
Its really so helpful. Thank you very much.
There's probably a block for that, and fancybox is responsive. This would be an easier option.