• Hello, I am using the evolve theme in WP version 4.2.2. I am trying to remove the sidebar only from certain pages. All of the tutorials I am finding here are saying to delete <?php get_sidebar(); ?> from the page.php but for some reason I do not see page.php listed in my editor. I thought I stumbled across a very simple way to do this without deleting any code before but for some reason I can’t find it again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I would strongly suggest using a plugin. One I’ve used in the past; and LOVE; is Widget Logic.

    Enjoy 😉

    Thread Starter cross-terrain

    (@cross-terrain)

    Thanks, that got rid of all of the widgets and essentially the sidebar, which I wanted. However, now there is just an empty space where the sidebar was. Is there a way to get rid of the sidebar and the sidebar space entirely on certain pages? I want the rest of the content on the page to be centered. Right now its still all pushed over to the left as if the sidebar where in the space to the right.

    thanks!

    Gotcha. Yeah, that plugin won’t remove the sidebar from the theme template (it can’t)… it only offers flexibility of “what” shows “where”.

    To remove the sidebar completely; two things come to mind:
    1) A theme option. Does your theme support multiple page templates (columns)?
    2) Coding. You’ll need a child theme; where you can place a function that will remove the sidebar from the page.

    Thread Starter cross-terrain

    (@cross-terrain)

    Aha! Yes it is in theme options! I believe this is what I was looking for, although this changed the layout for all pages. I still want the sidebar on the posts/home page. Any ideas for that?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove Sidebar from only certain pages’ is closed to new replies.