Support » Fixing WordPress » Sidebar in Posts

  • I don’t want any of the sidebar items showing in my posts pages on a site that I made. I went to the Widgets section and moved all of the sidebar widgets over to the “Inactive widgets” area but when I go to the post page the Archive and Meta widgets are still there. Posts Pages do not have a “Page attributes” option with a choice for template so how do I take them off?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @chuckh58,
    You can just make a file like “template-example.php” in your current theme and write the following lines in the file:

     * Template Name: Example
    get header();
    <?php get_footer();?>

    After adding this file in your current theme, you can see this template visible in your page attributes section.


    Thank you, this did give me the “Page Attributes” for post pages but there was no option to change the template to “Full Page with no sidebar”,just just a top section with page attributes to choose and the “Discussion” section at the bottom to choose “Allow Comments”, “Allow Tickbacks and Pingbacks on this page”. What I really wanted was to not have a sidebar at all (Archives-October 2016, and Meta-Site Admin, Log Out). How do I get rid of these sidebar items?

    OK, I figured out how to get rid of the sidebar in “Post Pages”. I went to the editor, to the “Parent Theme”, to “Single Post.php” and changed <div id=”primary” class=”content-area”>… to…. <div id=”primary” class=”full-width content-area”>
    This took the sidebar off of the post pages….but, the “Archives” and “Meta” just moved to the bottom of the page,,,,,so now what do I do to get rid of them all together?

    This Might have been a wrong thing to do but I wanted to get rid of those two items from the pages. I went to the Editor, then to the Parent Theme, then to Sidebar.php and just deleted all of the content which only had the div id’s for the “archive” and “meta” in it. That solved my problem. So far the site is still up, not broken. Yeay!


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar in Posts’ is closed to new replies.