1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Media Gallery Support' started by imthebest, Nov 20, 2014.

  1. imthebest

    imthebest Formerly Super120

    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
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    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.
     
  3. imthebest

    imthebest Formerly Super120

    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?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    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, Optic and imthebest like this.
  5. drastic

    drastic Well-Known Member

    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!
     

Share This Page