How to hide Blenderartists sidebar forever

Since I can’t post in Blender Artists Updates subcategory, I decided to put it in Off-topic Chat instead.

I think everyone (or almost everyone) knows that you can click the hamburger icon in the header to hide the left sidebar. The only thing is: it will show up once you logged out and logged back in again. I have no clue why this happens, so I made a little tweak to fix it.

  1. First, you’ll need to install a CSS extension for your browser that lets you add custom CSS code to individual websites. Everyone has their own favorite browser, so I won’t recommend a specific extension — there are many of them. Just Google it;

  2. Once you installed the extension, open the code editor (or whatever it’s called in your own case) and, while in there, add these next lines:

  3. body.has-sidebar-page #main-outlet-wrapper {gap: 0 !important; padding: 0 var(--d-wrap-padding-h) !important}
    .sidebar-container {display: none !important}
    .wrap {max-width: var(--d-max-width) !important}
    #main-outlet-wrapper {grid-template-columns: 0 minmax(0, 1fr) !important}
    .header-sidebar-toggle {display: none}
    .extra-info-wrapper .topic-header-extra .discourse-tags {display: inline-flex !important; overflow: visible !important; align-items: center};

  4. It should now appear like this:

  5. If you got the same result as shown above, great — chances are you did everything right. Now the sidebar should stay closed even after you log out of and back in to the website, which is great, isn’t it? :slight_smile:

Thanks for reading. I’ll be glad if I helped someone.

Cheers

1 Like