• I’m using a very old (child of) 2011 template (pending rebuilding site soon) and tried to add a blog page using a full-width template I created for other pages. When I set this page as the “Posts” page, WP overrides my full-width template and applies the default layout with sidebar and header (home page). I’ve searched here and online but can’t find the code that brings in the old default template. Help!
    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • That’s the way the Template Hierarchy works. The Posts page cannot use a page template.
    But you can rename your template file to home.php and it will be used.

    Thread Starter nacinla

    (@nacinla)

    Thanks. Content appears on pages because of code. Somehow code someplace is overriding my selection of a full-width template (which I tried after I saw that suggested and apparently accomplished successfully by others trying to remove the sidebar in online posts elsewhere). Whether or not there’s a template that the Posts page uses, there is code someplace saying “put the sidebar there, and grab the main header instead of the header you assigned to the page.” And that code should be changeable. I will try renaming the template “home” but meantime I’ve solved the problem by rebuilding this simple site using the Divi theme, which so far is allowing me to build a posts page the way I want. Thanks again.

    • This reply was modified 4 years, 8 months ago by nacinla.
    Thread Starter nacinla

    (@nacinla)

    PS: I tried renaming the template to home.php and it does pull in the posts, but without headlines and any other tags, metadata; and it still pulls in the main/home page header. So that won’t work. But thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove sidebar’ is closed to new replies.