Responsive Video

Premium BuddyPress WordPress theme perfect for venue, music brand or community music website.
GK User
Tue Jan 14, 2014 12:18 pm
http://mathis-nitschke.com/wp/airbus-group/


This video is embedded through your Featured Video field. But:
- it doesn't scale down when going tablet or mobile.
- if you scroll down, the video will go on top of the menu

What are more elegant solutions with responsiveness etc. ?

Thanks,
- Mathis
User avatar
Expert Boarder

GK User
Tue Jan 14, 2014 1:20 pm
Try to add this code to css/override.css file (first enable this option from template options -> Advanced tab)

Code: Select all
#gk-mainbody article iframe {
   max-width: 100%
}


but I didn't notice the problem with video on top of the menu during scrolling (which browser's version are you using?)
User avatar
Moderator

GK User
Tue Jan 14, 2014 3:01 pm
Hi Piotr, curious. I just had to recreate this post - for whatever reason and I replaced the video to one from Vimeo and it doesn't show that Menu-behaviour anymore.

Thanks for the css-code. Better than nothing but I'd prefer a solution which also scales the height proportionally, so I don't get the black up and down from the video. Any hints?

Bests,
- Mathis
User avatar
Expert Boarder

GK User
Tue Jan 14, 2014 3:58 pm
It's not so easy,

you can add additional css for height into css/tablet.css or css/mobile.css files:

Code: Select all
#gk-mainbody article iframe {
   height: 400px;
}


and specify your own height value.

you can also use this tutorial:
http://avexdesigns.com/responsive-youtube-embed/
User avatar
Moderator

GK User
Tue Jan 14, 2014 8:00 pm
Hi Piotr, from this tutorial:
"First you will need to add the following to your style sheet. "

Which css file is the one he is talking about? Can I put it in the override.css file?
User avatar
Expert Boarder

GK User
Tue Jan 14, 2014 9:09 pm
Yes, you can use css/override.css file.
User avatar
Moderator

GK User
Tue Jan 14, 2014 9:31 pm
Cool, it works beautifully, thank you!
User avatar
Expert Boarder


cron