How To Disable Sidebar In post not on page (3 posts)

  1. decentguy49
    Posted 3 years ago #


    I had used a theme in past which allows you to disable sidebar on a post by selecting full wide option on Add new Post page, now on my theme i want to add same option can you plz guide me how to do it.

  2. Mayeenul Islam
    Posted 3 years ago #

    Open your theme's single.php file into a text editor (NotePad++, DreamWeaver, FrontPage etc.) and find the following code at the bottom of the page:
    <?php get_sidebar(); ?>

    This code is loading the sidebar in your post pages.
    You can either comment it out like:
    <?php //get_sidebar(); ?>

    or, you can just delete the code to achieve the goal. :)

    (After resolving the problem, don't forget to click on the "The Problem is Resolved" on the right)

  3. Pioneer Web Design
    Posted 3 years ago #

    IF it is not an option in your theme, you will have to create a custom Page Template, create some CSS for it, and apply the Page Template to the page.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.