Is there a way to have a navigation button actively display only for mobile users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2015
12:59 PM
I would like for the "Discussions" button to appear in the navigation menu when users are accessing the course via the Canvas mobile app (android and iOS), but have it hidden when users access the course via a web browser on a laptop/desktop. Does anybody know if this would be possible and, if so, how they might go about doing it?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2015
07:19 AM
You can hide it with custom Javascript but if they know the URL, they will still be able to get to the discussions page. For example, the following code will hide the Discussions tab for everyone that is not an admin.
if (ENV.current_user_roles.indexOf("admin") < 1){
$( document ).ready(function() {
$('#section-tabs a.discussions').hide();
});
}