Some people asked in the LANDR plugin discussion how to integrate a video into the homepage..Here is an easy and responsive way to do so:
1. Upload your video to youtube & copy the embed code from there
2. add this somewhere in your homepage´s code (e.g. in /var/www/public_html/mod/landr/views/default/page/layouts/landr.php)
<div class="videowrapper">
<div style="text-align: center">
<iframe width="560" height="315" src="PASTE_HERE_THE_CODE></iframe>
</div>
</div>
3. in css.php add: (e.g. in /var/www/public_html/mod/landr/views/default/landr/css.php)
.videowrapper {
float: none;
clear: both;
width: 100%;
position: center;
padding-bottom: 60%;
padding-top: 0px;
height: 0;
text-align: center;
}
.videowrapper iframe {
position: center;
top: 0;
left: 0;
width: 100%;
text-align: center;
}
For more infos look into: http://stackoverflow.com/questions/15844500/shrink-a-youtube-video-to-responsive-width
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.