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

XF 1.2 Remove Sidebar on the homepage

Discussion in 'Styling and Customization Questions' started by Enguerran A, Sep 30, 2013.

  1. Enguerran A

    Enguerran A Well-Known Member

    Hello guys, I want to know how can I do to remove the sidebar from mainpage only. My main page is for displaying news only so I really need to remove it. I'm 2 step just before finishing my site but I'm stuck on that sidebar ^^'

    If you have any idea for me, go ahead :)
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    You'll have to determine the template that's being used and remove the xen:sidebar tag from it.
  3. Enguerran A

    Enguerran A Well-Known Member

    Well, it helped me a lot :) thank you
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It depends what you mean by "mainpage".
    The forum index? A portal page? Another page you have set as the index page?

    The FAQ in my signature explains how to identify the template name of the page.
    Then you can edit the template and comment it out or use CSS to hide it.
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    As Paul stated, it depends on what you are using. You said for display news, which implies it isn't the default forum index page. Which means it literally can be a myriad of possibilities that I/we can't possibly determine based on the information you have provided. Without more information, my answer is perfectly valid and applies to how to remove the side bar.

Share This Page