Getting rid of the left sidebar ('Media Navigation' and 'Albums' blocks)

imthebest

Well-known member
#1
Hi,

When viewing albums or media from a user you see a sidebar at the left which contains 2 blocks: 'Media Navigation' and 'Albums'

I'd like to get rid of that sidebar. Is that doable with CSS?

Thanks,
Super120
 

Chris D

XenForo developer
Staff member
#2
Code:
.xengallery_media_user .xengalleryContainer
{
    float: none;
    margin-left: 0px;
}

.xengallery_media_user .xengalleryContainer .insideContainer
{
    margin-left: 0px;
}

.xengallery_media_user .container .xengallerySideBar
{
    display: none;
}
That removes it from the user's media page.
 

imthebest

Well-known member
#3
I added the code snippet to EXTRA.css and now the block is gone from pages like gallery/users/username.123/ however it is still on pages like gallery/users/username.123/albums and gallery/add pages

Is there a way to remove the left sidebar globally?
 

Chris D

XenForo developer
Staff member
#4
Code:
.Public .xengalleryContainer
{
    float: none;
    margin-left: 0px;
}

.Public .xengalleryContainer .insideContainer
{
    margin-left: 0px;
}

.Public .container .xengallerySideBar
{
    display: none;
}
That should do it globally.
 

drastic

Well-known member
#5
Hey @Chris D - is there an updated code to remove the sidebar from the media page?

I plugged the global code into extra.css, but it placed the sidebar on the bottom of the page instead of hiding it.

thanks!
 
Top