Recent searches
No recent searches
Change text for "My Activities" in HC
Posted Oct 24, 2013
I've seen this question posted quite a bit in the forums, so here is a little how-to on how to change the string for 'My Activities' in HC, as done on http://support.amilia.com
Here's how to change the "My Activities" text
- In Guide, click the Customize design icon in the sidebar
- Click on Edit Theme to access your template's code
- Click the script.js file and add the following code:
//Change string for My Activities
$('.user-nav .my-activities').html(' See my requests');
$('.sub-nav').find('li').filter(":last");
As you see, this allows you to change the string to "See my requests"
Here's how to change the text in multiple languages
Follow the steps above but use this code:
if(currentLanguage === 'Français') {
$('.user-nav .my-activities').html(' Voir mes demandes');
$('.sub-nav').find('li').filter(":last");
}
This automatically updates the user drop-down menu and the subnav breadcrumbs as well!
Here's what it looks like!
0
35
35 comments
Emily Coleman
It doesn't look like that code works anymore (at least with the Copenhagen Theme), so for anyone still running into this problem, I found this works!
0
Jessie Schutz
Thanks for sharing, Emily!
0
Tapas Paul
Hi Team,
Sorry for being naive ... I'm new to Zendesk...I'm trying to follow the steps here... but wondering what exactly you are pointing as JS tab? When I click on View Theme --> Edit Code I see something like below...
I understand that the .hbs file refers to different pages/sections of the Help Center applications...and we got the script.js file....I don't see any thing specific as JS tab...can anybody please help me..
Many Thanks
Suman
0
Jennifer Rowe
Sorry for the confusion, Suman.
There used to be a JS tab, but now it's a file. Edit the script.js file.
Hope that helps! We'll update the instructions above.
0
Angela Frey
I see no change in the Preview mode with either of these (added to script.js)
$('.nav-wrapper .dropdown-menu .my-activities').html('See my tickets');
$('.sub-nav').find('li').filter(":last");
or
$('.user-nav .my-activities').html(' See my requests');
$('.sub-nav').find('li').filter(":last");
1