Knowledgebase: Products

Why isn't my YouTube video showing?

 

Your listing template may need updating.

If you are using customized templates, you may have inadvertently remove the coding necessary to display YouTube videos. If this is the case, you will need to update your product listing to include the YouTube embedding functionality on it. The code should be placed after your listing page's main image code block. (look for the comment tag: <!--END: image1->)

Below is the coding your listing template will need:

   <div id="realmediaBlock">
   <iframe id="realmedia" src="[realmedia]" frameborder="0" allowfullscreen></iframe>
   </div>
  <div class="addl-images">
   <div class="carousel">
    <ul class="slides">
     <!--START: realmedia->
     <li id="showRealMedia"><i class="icon-play"></i> <span>Video</span></li>
     <!--END: realmedia->
     

An easier alternative, would be to copy the listing pages from the common folder and apply them to your theme. However, this option will overwrite any possible customizations you may have applied. We recommend making a backup of your templates first before using either of these suggestions.


You're using the wrong URL

In some cases, the URL that is being copied may contain additional actions or embedded settings in the URL that are not compatible with the YouTube video display on product pages.

When copying your YouTube video URL, please make sure that the URL only contains the main video path which is typically something like this:

https://www.youtube.com/watch?v=[VIDEO_ID]

This is known as the video's WATCH URL and it is the URL that should be used for the store's product page.

Any URL that does not follow the above format may cause errors upon playback or not even play at all from your product page.

Examples of non-compatible URLs include

  • Shortened URL format: https://youtu.be/[VIDEO_ID]
  • Embedded iframe URL: https://www.youtube.com/embed/[VIDEO_ID]
  • URL with object parameters: http://www.youtube.com/v/[VIDEO_ID]?fs=1&hl=en_US
  • Video URL from a playlist: https://www.youtube.com/watch?v=[VIDEO_ID]=[PLAYLIST_ID]

Also note that videos listed as private on YouTube will not display, since they require permission from the video owner to be viewed.


Help Desk Software by Kayako fusion