WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. decentguy49
    Member
    Posted 1 year ago #

    Hello,

    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
    Member
    Posted 1 year ago #

    Simple.
    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 Valley Web Design
    Member
    Posted 1 year 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.
    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.