HC Header - replace community with a new title and new link
Hi,
I want to replace 'Community' in the header template with another title and have the link go to an external site. Any suggestions?
-
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.) -
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 -
Let me know if you face any issue.
Thanks
Team Diziana
-
That worked, thank you for your help!
@Team Diziana How would I set it up, so the link opens a new tab/window?
-
Like this
<a class="visit-site" href="https://website""_blank">Visit Website</a>
-
@Keith,
Like this,
<a class="visit-site" href="https://website" target="_blank">Visit Website</a>
Team Diziana
-
Great, it worked. Thank you :)
-
@Keith,
Glad to hear it worked :)
Team Diziana
Please sign in to leave a comment.
8 Comments