Support for coding in Category and Section names


  • Leslie Johnson

  • Tipene Hughes
    Zendesk Developer Advocacy
    Hi Leslie,
    Thanks for reaching out!
    While it’s true that you can’t create multi line titles directly in the Guide Admin UI, one option to make the changes you need would be to add a bit of Javascript in the help center code editor to update the title directly. Here’s a short example which gets the category title on the home page of a help center, and updates the HTML to add a line break. You would add this code to the script.js file in your help center code editor. :

    const categoryTitle = document.querySelector(".blocks-item-title");

    categoryTitle.innerHTML = "Hello, <br>World!</br>"
    You’d also need to identify other areas that the category title appears in your help center, and update them accordingly.
    I hope this helps! Feel free to reach out with any questions.

Please sign in to leave a comment.

Powered by Zendesk