Customizing your help center theme

Return to top

148 Comments

  • Nathan Purcell

    Why can we not inject dependencies to the document_head (or the out-of-reach area of the head)?

    It makes adding custom styling and working with frameworks (Bootstrap, Tailwind, Foundation) incredibly difficult and leads to a massive over use of !important declarations.

    0
  • Jérôme BOUILLIER

    Hello

    I would like to customize the Copenhagen help center theme by adding a custom field positioned at the organization level to the home page when the end user is logged in.

    Can you help or advise me.
    Thanks in advance.

    Jérôme

    0
  • Rasmus Lynggaard

    Hi,
    I'm customizing the Copenhagen theme. We're using multiple brands and the theming is almost identical. I have a few places where I would like it to differ between the brands.
    Can I do something like {{#is brand_id '123456789'}}
    What I'm asking is. How do I know which brand I'm on?

    Thanks
    Rasmus

    0
  • Teresa

    HiRasmus Lynggaard, you should see a drop-down at the top left in Guide to switch between brands.

    0
  • Rasmus Lynggaard

    Hi Nicole

    I was thinking of how to do differ in the code. I would like to have as few differences in the code between my themes as possible. Preferred there shouldn't be any difference and that is why I'm looking at the #is statement to switch between brands, but I can't find a helper which will return the brand id

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Rasmus! Since each help center's theme is isolated by brand, there isn't a helper available that would allow for a conditional statement that you're looking for.

    0
  • Casey Keefe

    Hi Zendesk & Community! Trying to localize some content on home_page.hbs, but getting the following error (used current_locale in header and footer with no issues):

    Any suggestions? Thanks!

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hic.keefe:)

    If you created Dynamic Content for your homepage content, you can use Dynamic Content placeholder like this:

    {{dc 'dc_placeholder_name'}}

    Post:

    https://support.zendesk.com/hc/en-us/articles/4408894121754-Changing-your-help-center-design-based-on-your-end-user-language

    OR

    Can you please share some more info.. about your query?

    0
  • Casey Keefe

    Hello againIfra Saqlain! Thank you for the dynamic content suggestion - I'll give that a try!

    0
  • Casey Keefe

    HiIfra Saqlain- Not able to get it working with Dynamic Content unfortunately (I appreciate the suggestion though!)

    Essentially, I want to hide the following div (and all of its elements) of the page when English (GB) is selected, but am getting the "not possible to access current.locale error":

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hic.keefe,

    Now I'm getting your point, you wanna hide the shared div with all the child elements of it when locale is English (GB).

    Add the given code to your script.js file at the bottom.

    if (window.location.href.indexOf("en-gb") > -1) {
    document.querySelector(".container-inner").style.display = "none"
    }

    Now, your div would be hidden when English(GB) is selected.

    0
  • Casey Keefe

    ThanksIfra Saqlain! I think I may be using the wrong div. What I am looking to do is hide the top two rows of tiles above the Category pill containers.

    I believe they are the "custom-blocks" in the code, but that didn't work for me when I swapped it in for .container-inner in the code. Thanks again!

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    不用担心c.keefe,

    Use this updated code where I replaced

    ".container-inner" to "#custom-blocks"

    Updated Code:

    if (window.location.href.indexOf("en-gb") > -1) {
    document.querySelector("#custom-blocks").style.display = "none"
    }


    Output:



    0
  • Casey Keefe

    Magnificent,Ifra Saqlain- you saved the day again! Many thanks!

    0
  • Michelle Izatt

    Does anyone have a code Snippet to add the Submit button to comments? It was deleted from article on our custom theme.

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    HiMichelle Izatt,

    See the screenshot:


    {{输入类型= '提交' class="button button-large"}}



    Screenshot:

    1
  • Michelle Izatt

    Ifra SaqlainI just added that to our custom theme code, republished and the button is still not showing. Any ideas why? Thank you!

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    share the public URL I wanna see the issue, did you add custom CSS or JS in your theme?

    0
  • Michelle Izatt

    Ifra Saqlainhere is one of our articles if that's what you are referring tohttps://help.peek.com/hc/en-us/articles/10430786382740-Advanced-Ticket-Configurations-

    I'm just an admin in a developer world :)

    0
  • Michelle Izatt
    Ifra Saqlain



    <导航类= "ub-nav">
    {{breadcrumbs}}


    {{#if settings.sidebar_block_visibility}}


    {{/if}}

    {{#if settings.show_articles_in_section}}

    {{t 'articles_in_section'}}



    {{#如果section.more_articles}}

    {{/if}}

    {{/if}}





    {{article.title}}
    {{#if article.internal}}

    {{/if}}
    {{subscribe}}




    {{#with article}}

    {{t 'was_this_article_helpful'}}

    {{vote 'up' role='radio' class='button article-vote article-vote-up'}}
    {{vote 'down' role='radio' class='button article-vote article-vote-down'}}


    {{vote 'label' class='article-vote-label'}}


    {{/with}}


    {{request_callout}}


    {{t 'return_to_top'}}


    {{recent_articles}}
    {{related_articles}}

    {{#if settings.comment_block_visibility}}




    {{t 'comments'}}


    {{t 'comments_count' count=article.comment_count}}


    {{#if comments}}

    {{/if}}


      {{#each comments}}





    • {{#if author.agent}}

      {{/if}}
      Avatar



      {{#link 'user_profile' id=author.id}}
      {{author.name}}
      {{/link}}


        {{#if editor}}


        {{else}}

        {{/if}}



      {{#with ticket}}

      {{t 'request'}}{{id}}

      {{/with}}
      {{#if pending}}
      {{t 'pending_approval'}}
      {{/if}}

      {{body}}



      {{vote 'up' role='radio' class='vote-up' selected_class='vote-voted'}}
      {{vote 'sum' class='vote-sum'}}
      {{vote 'down' role='radio' class='vote-down' selected_class='vote-voted'}}


      {{actions}}




    • {{/each}}

    {{pagination}}


    {{#form 'comment' class='comment-form'}}


    {{user_avatar class='user-avatar'}}


    {{wysiwyg 'body'}}


    {{输入类型= '提交' class="button button-large"}}



    {{/form}}

    {{comment_callout}}




    {{/if}}



    0
  • Michelle Izatt

    Ifra Saqlainmaybe this is the issue? The Button is disabled?

    0
  • Raúl

    I'm trying to create a section within the home_page.hbs template where we can post "news and updates". I noticed our default Guide Template seems to have included that at some point, but I couldn't find it in the code. Do you know how I could set something that looks like the "Product News and Updates" seen in the attached screenshot?

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    HeyMichelle Izatt, are you still facing the issue. I know I'm too late, I opened your link and I can't sign-up.

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    HeyRaúl,

    Go to th home_page.hbs file

    Find for 'categories blocks', see line no. 30 in the screenshot.

    copy that compete code from there, I'm attaching that code here:



    {{pagination}}

    This is the code which you want

    Thanks

    0
  • Raúl

    Thanks @Ifra Saqlain.

    How would I go about applying custom styling from that screenshot to only one specific category button?

    例如,如果我想要什么just"Kickstarter basics" button and make it look like the second screenshot?

    screenshot 1

    screenshot 2

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Raul,

    You can add there ID in the element:

    id="block-items-{{id}}"


    screenshot for the same:

    for anchor tag:

    id="blocks-item-link-{{id}}"

    Screenshot for the same:

    Now use that ids in CSS for specific element CSS:

    #block-items-360003781252 {

    }

    #blocks-item-link-360003781252 {

    }
    0
  • Lori Christianson

    Hi everyone --

    Does anyone know how to change the name 'Promoted Articles' on the home page? I'm using a free theme by Diziana. (Love that Thor theme!) I've looked in the code on the home page, on the header, on the section ... it's escaping me. Any ideas?

    Thanks,
    Lori

    0
  • Casey Keefe

    HiLori Christianson- I don't know the exact location within the Diziana-Thor theme, but on line 610 of our theme on home_page.hbs , I changed "Promoted Articles" to "Common Questions". Try a Ctrl-F search for "promoted-articles__title" or "Promoted Articles" and that should be near where you can change it. Good luck!

    0
  • Lori Christianson

    Hi back,c.keefe!

    Thanks for this. Unfortunately, this theme doesn't have anything like that. But I do appreciate you taking a stab at this. I'll talk to Diziana. Or change my theme ;-). Thanks again!

    Lori

    0
  • Pulkit Pandey
    Community Moderator

    HiLori Christianson

    Please let me know the name of the theme you are using and share the URL of your help center where you need to make those changes so I can provide you a solution for your query.

    Thank You

    Pulkit

    TeamDiziana

    0

Pleasesign into leave a comment.

Powered by Zendesk