To Our Amazing Educators Everywhere,
Happy Teacher Appreciation Week!
Found this content helpful? Log in or sign up to leave a like!
Hello!
Question: Has anyone here had any success moving the History button off of the global navigation?
We have a number of extra icons on our global navigation, and when Canvas added History, we decided to hide it until we could figure out what to do with it. We would like to move the button and its functionality to somewhere else in Canvas, but the button has no URL, so there is nothing to link to. Clicking on it doesn't show any activity in the browser console. Creating a new button elsewhere with the same id "global_nav_history_link" doesn't do anything either. So before I give up and mark this task as impossible, I thought I would ask here if anyone else has accomplished anything with the History button.
Thank you all very much,
-Sylvia
Hi Sylvia,
We are looking to hide this button in our own instance, could you please share your Java or CSS code that you used to hide this History button?
As for moving it, I do have Java code that moves our self-created global nav icons. I am not sure if it can be adapted to retrieve an existing global nav button (maybe finish out the line with a id="global_nav' to be global_nav_history_link?), but I will post it just in case someone can find a way to apply it to an existing button:
// Build item html
itemHtml = '<li class="ic-app-header__menu-list-item ">' +
' <a id="global_nav_' + linkId + '" href="' + linkhref + '" class="ic-app-header__menu-list-link" target=_blank>' + iconHtml +
' <div class="menu-item__text custom-menu-item__text">' + linkText + '</div>' +
' </a>' +
'</li>';
$("#menu li:eq(4)").after(itemHtml);
//the key is to change the number (4) to the position you would like the icon to be in. Make sure you use the masquerade feature to see what the shift will do in the student and teacher perspectives!
Hi,
Removing it is the easy part.
(function($){
$( "#global_nav_history_link" ).remove(); // gets rid of History icon
}(jQuery));
What I would love to be able to do is to recreate the function of the history button somewhere other than the global navigation bar.
-S
Thank you so much Sylvia!!
I agree with you, I think it would serve it's purpose better somewhere else. It's a button rarely clicked in our instance. I have subscribed to this thread so I will cross my fingers that someone can stumble upon it, and will certainly keep you updated if we find a way.
Thanks again, 🙂
- Sarah M.
I came here looking for a resolution to this as well. Kaltura wants to add My Media to the Global Navigation in their LTI 1.3 configuration, and the global navigation menu is so crowded already -- particularly with seldom used items like History.
I've seen some schools place the link to the Kaltura My Media under the User Account menu. If you are trying to remove it from the Global Nav, it might be worth testing adjusting the LTI install settings to add it to the User Account Menu instead of the Global Nav directly.
To participate in the Instructure Community, you need to sign up or log in:
Sign In