inherit
209176
0
Apr 28, 2023 3:24:54 GMT -8
Velociraptor
93
May 2014
velociraptor
|
Post by Velociraptor on Mar 13, 2023 10:40:55 GMT -8
Forum URL: ancientfossil.boards.net/
Hi,
How do I add 2 youtube videos, side by side to the front main forum page. Below the shoutbox, but above the forum thread.
Thank you in advance.
|
|
#e61919
Support Staff
224482
0
Member is Online
1
Apr 25, 2024 7:33:12 GMT -8
Scott
23,285
August 2015
socalso
|
Post by Scott on Mar 13, 2023 11:05:59 GMT -8
Velociraptor - 1. Go to Admin > Structure > Layout Templates > Home 2. At the very top above the existing code on a new line add the following. This creates the div containers for the videos, centers them and adds a small space between them. <div style="display: flex; justify-content: center;"><div style="padding-right:10px;"> VID-1</div><div style="padding-left:10px;">VID-2</div></div> 3. On YouTube find the videos you want to add. For the first video (one that will appear on the left side), click the Share button, then the Embed button. There you will see a code that starts with <iframe>... Click the copy button and the on the forum paste that code in place of the VID-1 in the code from Step 2. Do the same thing for the second video and paste that in place of VID-2 in the code from Step 2. 4. Now I would recommend sizing down the videos a bit. Near the beginning of both of the iframe codes you just pasted, you will see: width="560" height="315" - change this to: width="400" height="255" for each instance. 5. Click the Save Changes button at the bottom of the template page. Please let me know if you have any questions.
|
|
inherit
209176
0
Apr 28, 2023 3:24:54 GMT -8
Velociraptor
93
May 2014
velociraptor
|
Post by Velociraptor on Mar 13, 2023 11:25:10 GMT -8
Thank you, it's perfect!
|
|