Re-size embedded video for mobile
URL to the page in question:
http://www.jackohagan.com.au/video/
-
Hi Bill,
Hope you’re well 🙂
I’m wondering if there is a way to re-size the 5 x embedded youtube videos on this page for mobile please?
Best,
Leanne
Good Morning Leanne,
There are two ways you can make the videos responsive. The first is to use WordPress’ oEmbed feature. Basically instead of using the embed code from YouTube, you place the URL to each video on its own line. WordPress will go and fetch the video at that URL and display it for you. The theme will also make these responsive.
If you do need to use YouTube’s embed code, you can wrap it in a shortcode to make it responsive. Add this before each embed code:
[fit]
and this after:
[/fit]
and that should make those responsive too.
Have a great day,
Bill
Perfect!
Thanks so much Bill.
Appreciate your wonderful service as always. 🙂
Best,
Leanne
- The topic ‘Re-size embedded video for mobile’ is closed to new replies.