Question
Can I rename menu items? For instance, instead of achievements, can I change it to learning history or transcripts?
Answer
To change Achievements tab to desired text, you can use JavaScript. As an example, the following JavaScript can be pasted under Account >> Theme >> JavaScript.
Please ensure Javascript is enabled.
If you do not see the option to use custom Javascript in your theme, you will need to ask us, or your account manager to turn this on for you, for which there may be an additional charge depending on your account.
Vertical Navigation:
<script type="text/javascript">
$(document).ready(function() {
$("#courserecentach > span").text('History');
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#navtip_achievements > span").text('History');
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#achievementsWrapper > h2").text('History');
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#learner-dashboard-sidebar > h2").text('History');
});
</script>
Horizontal View:
<script type="text/javascript">
$(document).ready(function() {
$("#nav_sessions").text("Live Events and Webinars");
});
</script>
![]() |
We built out a series of courses all about customizing your Litmos instance. Check out the Instance Customization Pro Learning Path in Litmos Dojo. |
Comments
2 comments
So this is great and all, however- when I rename a menu item my icon for that menu item disappears. How can I avoid this problem?
Here is the code I've added:
<script type="text/javascript">
$(document).ready(function() {
$("#nav_sessions").text("Live Events and Webinars");
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#navtip_livesession").text("Live Events and Webinars");
});
</script>
Oh, I just figured it out. I had to change the text within the span instead of just the id. Now it is working.
Please sign in to leave a comment.