[Resolved] Remove Side bar from all pages, except one

Home Forums Support Remove Side bar from all pages, except one

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #100746
    Elizabeth Chaipraditkul


    I would like to know how I can remove the sidebar for all pages, except one (my blog). I have figured out how to turn off the side bar via ‘customise’ for all pages, but I would still like to have it for my blog.

    I’ve bought all the add-ons for this theme.

    Thanks in advance!

    Lead Developer
    Lead Developer

    Hi there,

    There’s a “Blog Sidebar Layout” in the Customize section, so you can use no sidebars for pages and single posts, but keep the sidebar in the Blog sidebar layout.

    That will also make it so the sidebar is showing in categories and archives.

    If you don’t want that, you can use a function.

    First, set the page, blog and single sidebar layouts to have no sidebars.

    Then, add this function: https://gist.github.com/generatepress/76ade6c6b76e7a608262

    How to add PHP functions: http://generatepress.com/knowledgebase/adding-php-functions/

    Elizabeth Chaipraditkul

    That is great Tom, thank you so much! I have a second question. On my ‘home’ page I would like to add an image right below the menu bar (like what you have on generatepress.com) could you please explain how to do this? Or maybe direct me towards where I could find how to do this? I feel like I have to use one of the hooks, but I have no idea how to use them.

    Lead Developer
    Lead Developer

    On my homepage I’m using the Sections add-on.

    If you don’t want to use Sections, you can use the Page Header add-on to easily add the same kind of thing.

    Let me know if you need more info 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.