How to embed youtube video link with <iframe> tag in the product page

Solved

How to embed youtube video link with <iframe> tag in the product page

WILLIAM0716
Excursionist
20 0 5

I'm trying to embed a YouTube video in my product page. At the end of the video it shows related video, I want those video to be only from the same channel. In that case I need to wrap the video link with a <iframe> tag and append ?rel=0 to the video's URL within the src attribute of the <iframe> tag. I'm not sure how to do in in the video section, or I need to edit code for it?

The video link I'm using: https://youtu.be/JO2WKFeJuZY?

website link: https://firestormpc.com/

password: tglxba

Accepted Solution (1)

Asad-Mahmood
Shopify Partner
445 80 91

This is an accepted solution.

use this code 

<iframe width="560" height="315" 
    src="https://www.youtube.com/embed/JO2WKFeJuZY?rel=0" 
    title="YouTube video player" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
    allowfullscreen>
</iframe>
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




View solution in original post

Replies 2 (2)

Asad-Mahmood
Shopify Partner
445 80 91

This is an accepted solution.

use this code 

<iframe width="560" height="315" 
    src="https://www.youtube.com/embed/JO2WKFeJuZY?rel=0" 
    title="YouTube video player" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
    allowfullscreen>
</iframe>
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp
Fiver




WILLIAM0716
Excursionist
20 0 5

Thank you so much.