Hide a section of the sidebar for anon

here you go:

common css

// * hide the Community section in side-bar from anon users*

.anon .sidebar-section-wrapper.sidebar-section[data-section-name="community"] {
    display: none;
}

should be able to do the same for any other sections you want to hide from anon users.

edit: i fixed a space before “none”


btw, as an aside, if you want to hide all the lock badges on the secured category bullets in the side-bar, you can do this:

// * turn off the lock icon for all secure categories in the sidebar *

.sidebar-section-link-wrapper .sidebar-section-link-prefix.icon .prefix-badge, .sidebar-section-link-wrapper .sidebar-section-link-prefix.span .prefix-badge {
   display: none;
}