Hide calendar from navigation block

Hide calendar from navigation block

by Red Abera -
Number of replies: 3


How can i remove/hide calendar from navigation block? I found the way to hide the following but i can't find a way of hiding the calendar. Please help.

The code below was posted in another discussion by Justin Mastic.

/* Remove items from navigation block */

/* Remove "My home" */
.block_navigation .type_setting.depth_2 { display: none; }

/* Remove "Site Pages" */
.block_navigation .type_course.depth_2  { display: none; }

/* Remove "My Profile" */
.block_navigation .type_user.depth_2 { display: none; }

/* Remove "Courses" */
.block_navigation .type_system.depth_2 { display: none; }


Average of ratings: -
In reply to Red Abera

Re: How to - Hide calendar from navigation block

by Sandra King -
EDIT**

I found this in another forum post, it worked for me.
The suggestion was you can place this in the header (Additional HTML)
<style>[data-key='calendar']{display:none;} </style>

Someone else posted that it would be better to add it to the SCSS (It will be cached which is better for performance)
In the Boost theme under Advanced Settings, there is a box where you can add code.
Raw initial SCSS
[data-key='calendar']{display:none;}

It worked when added there,
When I first tried to add it to Raw SCSS (the second box) it didn't work (for me - may have needed to purge cache - I didn't check).

This was the original post

Thank you, anyone, for your help.
Sandra
In reply to Sandra King

Re: How to - Hide calendar from navigation block

by Red Abera -
Thank you very much Sandra. I added [data-key='calendar']{display:none;} into the Custom CSS within the academi themes and i can't now see the calander

Thanks again