How can I format the text of the article with the source code?

Return to top

12 Comments

  • Sean Hamelman

    Does guide also support html to embed videos from non supported streaming services (we do not want to upload them to a public platform)?

    2
  • Lisa Sedlak

    The inserting video into articles article sends us here, but there is no source code to show us what to do. 

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Lisa!

    That's a good callout, this page is mainly meant to show you just some of the ways you can leverage html to do things in articles. As there is an extensive amount of ways to embed video's in html, we chose not to include them on this page. If you want to let me know where you're hosting your videos, I can provide an example of how to embed them into your articles. 
    1
  • Terry H.

    Hello ZD, I am trying to add 2 iframes to a Zendesk article, a Google Map, and a client website. In edit mode, the source code displays properly. When saving and publishing, on the front end = no changes. I thought it might take a delay, but no changes. Here is the source code. 

    <p>
      <iframe style="border: 0;" src="https://www.fakeWebsite.com/" width="600" height="550" scrolling="no" allowfullscreen=""></iframe>
    </p>

    <p>
      <iframe style="border: 0;" src="https://www.google.com/maps/embed?anotherFakeWebsite" width="600" height="450" allowfullscreen=""></iframe>
    </p>

    Can you advise? 

    0
  • Eric Nelson
    Zendesk Developer Advocacy

    Hey Terry H.

    The iframe is considered an 'unsafe' html attribute so you'll need to turn on the feature 'Display unsafe content' in your help center's general settings. 

    Hope this helps,

    Eric

    1
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey 
    1
  • Nancy Morris

    I'm just starting to learn how to build out my KB and am curious about getting videos embedded in the articles. I think I read on a different help page that videos that are on, say, Loom or Vimeo have to be marked "public" - is that correct? I do not want people (who are logging in to the KB) to be able to share or download the video but simply access it within the article itself.

    0
  • Terry H.

    Brilliant Eric, thank you so much for your reply, you have helped immensely! I knew it was just a setting! 

    0
  • Lydia L.

    Hi! I'm trying to add a strikethrough in an article. It shows up and works perfectly in the edit page for the article, but doesn't show up on the published, user facing page. 

    Can someone help me figure out why that might be happening?

    0
  • Dave Dyson
    Zendesk Community Manager
    Hi Lydia,
     
    Most likely, the method you're using is considered "unsafe HTML" by Zendesk – for security reasons, there are a defined set of HTML tags and attributes listed here, and anything not included on that list will be stripped out of the article unless you enable Display unsafe content: Allowing unsafe HTML in help center articles
     
    However, strikethrough text can be achieved using safe HTML and CSS. Simply create a CSS class for strikethrough text, and add it to the end of the style.css file in your help center theme and publish the theme:
     
    .strike-through {
      text-decoration: line-through;
    }
     
    Then in your article, you'll need to apply that text via HTML to the text you want to strike out:
     
    <div class="strike-through">
      <p>Strike-through via CSS</p>
    </div>
     
    (Note: When you do that, the text will not show as strikethrough when you're editing it, but it will be strikethrough in the published article)
     

     
     
     
     
     
    0
  • B.M

    Hi ZD,

    I am trying to embed a video to my Zendesk knowledge base, but the video source is not on the supported providers. How to do I go about embedding the video on the knowledge base? My videos are hosted by Screencast-o-matic. 

    Any guidance will be greatly appreciated. 

    0
  • Dave Dyson
    Zendesk Community Manager
    Hi B.M., 
     
    You can find instructions here on how to insert videos from non-supported providers: Inserting videos by embedding code
    0

Please sign in to leave a comment.

Powered by Zendesk