HC Header - replace community with a new title and new link

8 Comments

  • Customer Support Theme

    Hello @Keith,

    You can change it by two types - 

    First type 

    You can change via HTML

    Remove/Comment the "Community" shortcode and add your own HTML

    <a target="_self" href="https://www.google.com">Your New Title</a>

    For same tab use - "_self"

    For new tab use - "_blank"

    Second type 

    You can change via JS

    Add below step

    Replace your community shortcode by this -

    {{link 'community' class='header_community'}}

    Add below JS on your Help Center "JS" tab -

    $(document).ready(function() {

    $('.header_community').text('Your New Title').attr('href', 'https://www.google.com/');

    });

    Let us know if face any issue. 

    Thanks
    Customer Support Team
    http://customersupporttheme.com
    (Experts in Zendesk Themes, Zendesk Help Center, Plugins, Help Center Branding and Customization.)

    2
  • Trapta

    Hi @Keith,

    If you don't want the text and link of community in the header then, I don't think that there is any need of using {{community}} component.

    You can simply add a link using anchor tag and href attribute or you can use dynamic component for it so that you can show text in different languages as per different locale.

    You can refer to this post for graphical representation of how to add a link in dynamic content or you can always refer to the documentation available on Zendesk platform about dynamic contents. Few of the links are -

    https://support.zendesk.com/hc/en-us/articles/203663356-Providing-multiple-language-support-with-dynamic-content-Plus-and-Enterprise-

    https://support.zendesk.com/hc/en-us/articles/203661426-Change-your-Help-Center-design-using-Dynamic-Content-Support-Professional-and-Enterprise-

     

    Let me know if you face any issue.

    Thanks

    Team Diziana

     

    1
  • Keith

    That worked, thank you for your help!

     

    @Team Diziana How would I set it up, so the link opens a new tab/window?

     

     

    0
  • Trapta

    @Keith,

    Simply add target="_blank" attribute in your anchor element so that, it will look like this -

    <a href="URL" target="_blank">TITLE</a>

    Cheers

    Team Diziana

    0
  • Keith

    Like this 

    <a class="visit-site"  href="https://website""_blank">Visit Website</a>

    0
  • Trapta

    @Keith,

    Like this,

    <a class="visit-site"  href="https://website" target="_blank">Visit Website</a>

    Team Diziana

    0
  • Keith

    Great, it worked. Thank you :)

    0
  • Trapta

    @Keith,

    Glad to hear it worked :)

    Team Diziana

    0

Please sign in to leave a comment.

Powered by Zendesk