Home › Forums › Fitness Pro Forum › How to put a video responsive from Youtube on the homepage
- This topic has 7 replies, 3 voices, and was last updated 7 years, 8 months ago by
Forum Moderator.
-
AuthorPosts
-
December 30, 2015 at 9:35 am #17385
Hi,
I would like to embed a video from youtube, full size on thee laptob but responsive on other platforms like mobile and tablets.
I don’t know how I can do it.
Thanks a lot.
December 30, 2015 at 9:50 am #17386Hi,
Kindly show us your website link
Regards,
ShriDecember 30, 2015 at 9:56 am #17387Hi,
Here’s the website: http://www.y2cgymbox.com/en
Thanks!
December 30, 2015 at 10:06 am #17389Hi,
Kindly go to Appearance>Theme Options>Basic Settings>Custom CSS box:
paste this css code in custom css box.video-container iframe{width:100%; height:600px;}
Regards,
ShriDecember 30, 2015 at 10:12 am #17390Perfect!
Thanks a lot for you quickly answer.
December 30, 2015 at 10:12 am #17391paste this css code in custom css box (for Responsive)
@media screen and (max-width:479px) { .video-container iframe{width:100%; height:auto;} } @media screen and (max-width:719px) and (min-width:480px) { .video-container iframe{width:100%; height:300px;} } @media screen and (max-width:979px) and (min-width:720px) { .video-container iframe{width:100%; height:500px;} }
Regards,
ShriJanuary 28, 2016 at 8:40 am #20610Hello, I have followed your advice writing : video-container iframe{width:100%; height:600px;} in the css box (stetting basics)
but my video is still no responsive : http://ervent.aragon-team.fr/a-propos-d-ervent/the embed from youtube is : <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/LKhldlWe2xI” frameborder=”0″ allowfullscreen></iframe>
Thanks for your help.
January 28, 2016 at 12:12 pm #20641Hi Emma,
The website link you provided above is invalid. Please provide the valid link.
Regards,
Shri -
AuthorPosts
- You must be logged in to reply to this topic.