Embed Videos in Help Center Articles with Two Easy Steps (using video.js)

112 Comments

  • Jessie Schutz
    Comment actions Permalink

    Hey Sébastian!

    Thanks for the heads up on this! I'll send it over to our Documentation team so they can take a look. :)

    2
  • Cheryl Wetherington
    Comment actions Permalink

    Wes is the HC King!

    1
  • Wes Drury
    Comment actions Permalink

    @Jamie - Since the labels concept is new I'm not sure what the code would be to use that however I will ask Jennifer to reach out to someone so the code below will work in the meantime.  Just make sure the word "Video:" exist in your article title.  I'm using FontAwesome for the icons as thats what I always use since its easy to integrate.

    Document Head (calls the CSS for the icons)
    <!-- Font Awesome -->
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

    CSS
    .video:before{
    content: "\f03d";
    color: #a83030;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    font-size: 18px;
    }

    If you would like to change your icon then look on the below list and put in the
    icon code for content: " "

    http://astronautweb.co/snippet/font-awesome/
    You can also change the color of the icon and size if needed.

    JS
    $('ul.article-list a:contains("Video:")').addClass('video');

    Let me know if you run into any issues.

    1
  • Daragh Everett
    Comment actions Permalink

    Hi Wes

    I have the code in place and have your video working in our help centre.

    However, I have no idea how to get my video on there?

    Am I supposed to upload it via Video.js? I can't see any areas to do this.

    I've also clicked the 'Get Started' link on the Video.js page and it asks to download a RAR file, i did and none of the attached files I got worked?

    Can you help as I need to get this video up ASAP.

    Thanks

    Daragh

    1
  • Elizabeth Washington
    Comment actions Permalink

    @Wes - I know this article is a bit old, but I was trying to implement your suggestion regarding the video icon showing on help articles that contain the word video. I have added the code you indicated in the document head, css and js but I am not seeing anything. Any suggestions on how to troubleshoot this further? Really appreciate your help!

    1
  • David
    Comment actions Permalink

    Where and in what format does the video need to be stored in order to be able to embed it like this?

     

    1
  • Andrea Saez
    Comment actions Permalink

    The Youtube embed script would also work for this, right? But I see your approach with making this responsive friendly.

    0
  • Wes Drury
    Comment actions Permalink

    @Andrea - yes the embed youtube script would work for this but this is more geared  to in-house videos.  For us we can't post videos to youtube as it would break our contracts with our third party vendors.  Yes can you tell I'm all about making everything responsive :-)  

    0
  • Matt Gillette
    Comment actions Permalink

    Thank you! This was very helpful as we a restriction on using YouTube videos as well. I had to adapt this to use with V1 of ZenDesk.  If there's a better way to do the following, let me know.

    Head into the Settings -> Extensions 

    Make or edit a global CSS widget and added the following to the top:

        @import url('//vjs.zencdn.net/4.2/video-js.css');

    Make or edit a global JS widget and added the following:

        var js = document.createElement("script");
        js.setAttribute("type", "text/javascript");
        js.setAttribute("src", "//vjs.zencdn.net/4.2/video.js");
        document.getElementsByTagName("head")[0].appendChild(js);

    Update the URL to get the version you want.

    Thanks again!

    0
  • Wes Drury
    Comment actions Permalink

    @Matt - Your welcome and I'm glad it helped.  Thanks for sharing your code as well.

    0
  • Steve Kremer
    Comment actions Permalink

    I did everything you said, but for some reason when I am in the editor in HTML mode when saving, the code gets changed.  Look at the attached "zendesk_before_update.png".  This is the code that you suggest to copy and paste.  I paste it, click update, the video does not appear.  I click "edit" to see the code, and as you see in "zendesk_after_update.png" the HTML editor keeps changing the code.  Can you make the editor not change the code?

    0
  • Wes Drury
    Comment actions Permalink

    @Steve - Did you make sure you did the following:  you must  enable unsafe HTML in pages

    0
  • Steve Kremer
    Comment actions Permalink

    Thank you Wes, that did the trick.  I guess I missed that at the top of the article.  Kind of screwy that Zendesk would make a user make all unsafe tags enabled, when all I need is the single quote.

    0
  • Wes Drury
    Comment actions Permalink

    @Steve - Glad it helped just let me know if you run into any other issues.

    0
  • Jamie Atkinson
    Comment actions Permalink

    Is there a better way to indicate in the article title that there is a video in the article? We want to make it easy for users to identify video content from the article list? Currently we are putting [Video] at the beginning of the title but an icon would be preferable.

    0
  • Cheryl Wetherington
    Comment actions Permalink

    Hi Jamie, Check out this article for adding a video icon: https://support.zendesk.com/entries/24003497-Identify-articles-with-video-tutorials-with-an-icon

    0
  • Jennifer Rowe
    Comment actions Permalink

    Thanks for pointing that out, Cheryl. I think it will only work for Web portal, though, not Help Center. I'd love to have the HC version of that tip! Love those little video icons. 

    0
  • Cheryl Wetherington
    Comment actions Permalink

    Oh shoot - thanks Jennifer, I forgot that. Wes??  ;)

    0
  • Wes Drury
    Comment actions Permalink

    @Jamie - I will post some code that will allow you to do this.  Let me do some testing and I'll post it as soon as I can.

    0
  • Jamie Atkinson
    Comment actions Permalink

    Sounds great Wes! If you have a little document one for PDFs too, that'd be dreamy! :)

    0
  • Jennifer Rowe
    Comment actions Permalink

    Indeed--Wes is the HC King! It'll be great to have this code for HC.

    0
  • Wes Drury
    Comment actions Permalink

    Almost there, just gotta work on the spacing a little.  This may become easier once labels are implemented in the Help Center as we may be able to search for the label and then apply the icon.  For now the only way I can think of is to keep the word "Video:" in the Title as there is no other way you can identify which articles contain the videos.  Here is what I have so far.  Let me know if this looks ok and you can any icon that you would like.

    0
  • Jamie Atkinson
    Comment actions Permalink

    Hey Wes, 

     

    Thanks for this. If it makes any difference, we have labels turned on and all of our video articles are already labeled with video. Would there be a better way of doing this with that in mind? If not, this would definitely work in the interim. 

    0
  • Jamie Atkinson
    Comment actions Permalink

    Hey Wes,

     

    Seeming to have some issues getting it to work. Could you take a look? 

    0
  • Wes Drury
    Comment actions Permalink

    Sure thing can you shoot me over a link or if its private you can shoot me an email wes@cibertec.net

    0
  • Daniel Latrimurti
    Comment actions Permalink

    I use S3 and build players from EZS3. Have you any guidance for this situation?

    0
  • Wes Drury
    Comment actions Permalink

    Hi Daniel - I'm sorry but I'm not familiar with S3 or EZS3.  Does it produce any code that you can copy like YouTube.

    0
  • E nertion
    Comment actions Permalink

    hi, i have the 'starter' version of zendesk help centre. i have changed the setting to 'display unsafe content' however i cannot successfully embed youtube video into my article. it shows the video as being embedded whilst i am editing the article, however after publishing the article it is not visible. https://enertionboards.zendesk.com/hc/en-us/articles/201826400-How-to-install-skate-trucks-

     

    note: currently i must link back to my website so people can view the video.

    0
  • Wes Drury
    Comment actions Permalink

    Give this a try, make sure that you click on the <> button so that you can insert the following code.

    <iframe width="560" height="315" src="//www.youtube.com/embed/Z4kh0Ufzjvc" frameborder="0" allowfullscreen></iframe>

    0
  • E nertion
    Comment actions Permalink

    hi, thanks for the code, (yes i was using <>)

    your code worked..... so why did it work? you only removed the "?rel=0"  why would that make a difference?

    does zendesk not allow the related videos to play?

     

    0

Post is closed for comments.

Powered by Zendesk