Wednesday, March 8, 2017

Making the Moodle Calendar block neater by removing the Events Key

I think I prefer the Moodle Calendar block to the Upcoming Events block because it has a little more visual appeal, with event dates neatly highlighted. The Upcoming Events block can make the course homepage look crowded if there are many events such as deadlines in the near future. However, I don't like the Events Key that appears in the Calendar block. I'd rather not distract learners with links on the course homepage that are not central to the course experience. The Events Key has four links -- that's a lot.


















I wanted to hide the Events Key in this block while retaining it in the full view of the Calendar (which you see upon clicking the month name in the Calendar block) -- I didn't want to lose this set of links altogether!

So I added these two lines of CSS in the settings of my theme:
  
.block_calendar_month.block .filters.calendar_filters 
{display:none;}

.block_calendar_month.block .eventskey {display:none;}


Now I have a neater calendar: