7 Comments

  • Wes Drury
    Comment actions Permalink

    @Sam - Since the FAQ's will be different I would just do them all manually via HTML then use JQuery or Curlybars to show them based on which category you are in.

    This article will get you started and if you get stuck along the way just let me know.  The same logic applies but the jquery will be a little different and of course and you can use the curlybars.

    0
  • Sam
    Comment actions Permalink

    @Wes at first I used jquery for this, but in the end I found it was easier to use category IDs in curly bars to do this. 

     

    It seems it would be beneficial for zendesk to allow an HTML editor for category pages (like article pages) - I am not the only user to request this. 

    0
  • Chris
    Comment actions Permalink

    Like many others I needed HTML in the section and category descriptions. Here's a hack to achieve this.

    Insert this line in your JS, in the $(document).ready section:

     $(".page-header-description").html($(".page-header-description").text());

    The line 'unescapes' the description and activates the HTML. Now you can use HTML tags in your section descriptions.

    Disclaimer: this works with Copenhagen theme, but may not work with other themes because it relies on the 'page-header-description' to retrieve the content of the section description.

    3
  • David Moscol
    Comment actions Permalink

    @Chris,

    Awesome tip, thanks for sharing!! Even if not using Copenhagen it will work just by changing ".page-header-description" to the section description class name used in the theme.

    0
  • David
    Comment actions Permalink

    Thanks Chris!

     

    0
  • Barsik
    Comment actions Permalink

    @Chris, big thanks!

    0

Please sign in to leave a comment.

Powered by Zendesk