Hiding a group/category from dropdown options

On our calendar (https://calendar.ctstate.edu/) we have the sidebar on the right of the page that includes a dropdown that shows the different group calendars. We’d like to hide one of our groups from that list but I’m not sure how to do that. I did check off the " Exclude this group’s content from all widgets and API requests unless explicitly requested" option in the group settings, which didn’t help in this case, so I’m not sure if there’s any hardcoding I can do to exclude just one group from the list. I changed it so the offending group redirects to a webpage and not the actual calendar but would prefer if it wasn’t visible in the list at all. Thank you for any advice!

Hi Yvonne,

Sure thing – That calendar dropdown (lw_calendar_calendars.html in the theme components) shows all groups that have a Calendar URL set. If you have a group that you just want to use for organizing events, but not have its own landing page, you can go to the Edit Group page for that group and delete out the Calendar URL. That will remove it from the navigation dropdown, and is typically how this kind of thing is done.

If you need something a bit more custom beyond that, removing it with JS/CSS in the theme would probably be the simplest way to go. Hope this helps!

Karl

Thank you Karl, that worked perfectly and was way easier than I expected it to be.

1 Like