Announcement

Collapse
No announcement yet.

YouTube code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    YouTube code

    Hi, I know there is a code you can add to a YouTube video link to stop the YouTube page showing up at the end of the video on your website. Anyone know what that code is? Thank you! Donna
    Donna Bunnell
    Treasures of the Southwest
    www.treasuresofthesouthwest.com

    #2
    The code you're referring to is typically added as a parameter to the YouTube video URL. It's called "rel=0" (short for "related videos"). When added to the end of a YouTube video URL, it helps prevent YouTube from showing suggested videos at the end of the embedded video on your website.

    Here's how you can use it:

    Comment


      #3
      Hi Eldon, Thank you for the code. I must have left something off!

      This is the code:
      https://youtube.com/shorts/Un6Fp3I1f...A5Nco1BC4wUDF2

      This is what I added:

      https://youtube.com/shorts/Un6Fp3I1f...BC4wUDF2?rel=0
      I used upper case O and also tried zero.

      Thank you for all of your help.
      Donna
      Donna Bunnell
      Treasures of the Southwest
      www.treasuresofthesouthwest.com

      Comment


        #4
        You were on the right track. However, you are using the "shorts" format, which I cannot say will work in this case. With that being said, I think I gave you the wrong format anyway (my apologies). Try this instead:

        https://www.youtube.com/embed/VIDEO_ID?rel=0

        Replace VIDEO_ID with the id of your video, like below:

        https://www.youtube.com/embed/Un6Fp3I1fo8?rel=0

        Let me know if that works for you.

        Comment


          #5
          Originally posted by eldon99 View Post
          You were on the right track. However, you are using the "shorts" format, which I cannot say will work in this case. With that being said, I think I gave you the wrong format anyway (my apologies).
          I think you are correct, I do not think you can use "Shorts" - I ran it this issue a few years back. It may have changed since then. Might be interesting to find out.

          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment

          Working...
          X