Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 29th Oct 2017, 12:35 PM   #1
Advanced Warrior
War Room Member
 
Join Date: 2011
Posts: 810
Thanks: 888
Thanked 110 Times in 102 Posts
Default
Youtube embed help, please
Share on: 
fb share twitter share gplus share more share

hi

i am using this code to make youtube videos resizable for cell phones
(i found this on the internet)

<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
</style>
<div class='embed-container'><iframe src='https://www.youtube.com/embed/IXXXXXXX' frameborder='0' allowfullscreen></iframe></div>

(where XXXXXXXX is the designated ID of the youtube video)


is there a way that you can see to adjust the code so that related videos do not show at the end of the played video ?

thank you

.
newxxx is offline   Reply With Quote
Unread 30th Oct 2017, 09:42 PM   #2
HyperActive Warrior
 
Join Date: 2016
Posts: 193
Thanks: 22
Thanked 79 Times in 65 Posts
Default
RE: Youtube embed help, please
Share on: 
fb share twitter share gplus share more share

This is what I found on Google ... plz test it though

src='https://www.youtube.com/embed/IXXXXXXX?rel=0' frameborder='0' allowfullscreen></iframe></div>

You would basically add the text “?rel=0” before frameborder. You can get that by choosing appropriate options while generating the Embed code.

Laksh is offline   Reply With Quote
The Following User Says Thank You to Laksh For This Useful Post:
Unread 31st Oct 2017, 06:08 PM   #3
Advanced Warrior
War Room Member
 
Join Date: 2011
Posts: 810
Thanks: 888
Thanked 110 Times in 102 Posts
Default
Re: Youtube embed help, please
Share on: 
fb share twitter share gplus share more share

thank you very much

i also threw in autoplay=1 so the short video plays when the page is open

agian, thank you !!!!!!

.
newxxx is offline   Reply With Quote


Bookmarks

Tags
embed, youtube


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:46 AM.