video on front page

WordPress theme dedicated to start-up websites with amazing CSS3 animated icons, price tables and parallax effect background.
GK User
Sun Apr 28, 2013 11:33 pm
I installed the quick start. In the widget that say click to watch video, i accidentally erased the sample that lead to a vimeo video. i'm trying to put a link to watch a you tube video. can you give me the correct code so it comes up in the black box as in demo but has a you tube video?
User avatar
Expert Boarder

GK User
Mon Apr 29, 2013 9:07 am
Hi,

For youtube movies use this code:
Code: Select all
<h1>Start 30-Day free trial today. Set up in instant</h1>
<h2>Powerful landing page theme for running serious business</h2>
<form class="gk-form">
<div><input type="email" placeholder="Email address ..."> <input type="submit" value="Get Started today!"></div>
</form>
<p><a class="gk-video-link thickbox" href="http://www.youtube.com/embed/your_video_id?TB_iframe=true&amp;width=900&amp;height=506">Watch the introduction</a></p>

after youtube.com/embed/ paste id of your video.
User avatar
Moderator

GK User
Mon May 13, 2013 2:02 am
I want to make the Youtube video auto play and not show the related videos at the end, I tried adding this:

Code: Select all
&autoplay=1&rel=0


It's not working


Please help
User avatar
Expert Boarder

GK User
Mon May 13, 2013 7:31 am
Try something like this:
Code: Select all
<a class="gk-video-link thickbox" href="http://www.youtube.com/embed/yours_ID?&autoplay=1;&rel=0;TB_iframe=true&amp;width=900&amp;height=506">Watch the introduction</a>


Parameters autoplay and rel should be before TB_iframe.
User avatar
Moderator


cron