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

XF 1.5 How can i remove the sidebar on index?

Discussion in 'XenForo Questions and Support' started by gavpeds, Apr 15, 2016.

  1. gavpeds

    gavpeds Active Member

    I would like to remove the sidebar on main forum index including visitor panel. How can i achieve this?
     
  2. wang

    wang Well-Known Member

    Add this bit of code to the EXTRA.css template of the style that you are using as default.

    HTML:
    .sidebar {
    display: none;
    }
    
    .mainContent {
    margin-right: 0;
    }
     
  3. Steve F

    Steve F Well-Known Member

    If you don't plan on using any of it I would simple comment out where it is first called which would be in the PAGE_CONTAINER template.

    CSS will just hide but the data still loads.
     
  4. gavpeds

    gavpeds Active Member

    Perfect thanks.
     
    wang likes this.
  5. wang

    wang Well-Known Member

    You are welcome sir.
     
    gavpeds likes this.
  6. gavpeds

    gavpeds Active Member

    Out of curiosity is there any css trickery like this that could make the sidebar show under the forum? You know like members online, stats etc
     
  7. wang

    wang Well-Known Member

    I do not think that that can be done with css only. Template changes would be required too.
     

Share This Page