• I’m wondering if it’s possible to NOT have the sidebar in a Page. I have specific content I want to show, and the sidebar (with categories, calendar etc.) doesn’t need to be there.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You can remove the call to the sidebar in your page or create a new page without the sidebar.

    jonimueller is totally right. There should be a page.php file in your theme folder. Copy it then rename it to anything you remember and delete the sidebar call.

    One you have done all the above the only thing you need to do is to apply this template in your “Write – Page” Section of your blog everywhere you want no sidebar.

    Could look something like this:

    <?php
    /*
    Template Name: Page Templage w/o Sidebar
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div id="content" class="fullcolumn">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	</div>
    
    <?php get_footer(); ?>

    Unless the call to your sidebar isn’t in the page template. I’ve never put this in any of my themes. I’ve always called it in the footer.

    You can always find the call for the sidebar which should be:

    get_sidebar();

    Then you could do this:

    if(is_page('Page Name')) :
    else :
    	get_sidebar();
    endif;

    Hmm. My page template usually tracks my index.php template and most of the time I call the sidebar from index.php and then daisychain the footer, calling it in the sidebar. But that’s just me, and I think that might be leftover thinking from (please don’t laugh) Greymatter.

    The best solution, tho, is what greenshady proposes. ??

    The page template is a perfectly fine solution. I even offer it in one of my themes. The if statement is a little different though with that because I include the sidebar in the footer.

    I think that my question is the same, but I’m not sure. I tried your solution greenshady and I think I did something wrong! I was trying to get the sidebar with the blogroll and such off of each “post”, while still leaving it on my other pages (about and overall view). Any ideas?

    Unless the call to your sidebar isn’t in the page template. I’ve never put this in any of my themes. I’ve always called it in the footer.

    You can always find the call for the sidebar which should be:

    get_sidebar();

    Then you could do this:

    if(is_page(‘Page Name’)) :
    else :
    get_sidebar();
    endif;

    genevaeagles or greenshady…

    i have added a new php file called pageNS.php… but how do i apply the template to the Write- Page section of my blog???

    I’m trying to get rid of the sidebars on my Buy Stuff page on my site https://www.mommybrainreports.com

    Any help would be much appreciated!!! Thanks in advance!

    mommymoments the easy way is not to use Frame. The way you can do is Copy source code from the source page, only items in Table. Like this one hmongasia.com/hmong-books

    inntell… I’m sorry… I’m very new at all of this template design, etc… I’m not sure I’m following here..

    This tip work fine with 2 columns theme. But I use a 3 columns one and I only want to hide ONE of TWO sidebars, not both of them.

    How can I do it ?

    Thanks in advance.

    I have a WordPress Blog with two columns…
    I have the theme “Fields of gold

    I can’t hide the side bar…
    Please… somebody help me because I’ve tried all the solutions above and they are not working…

    Please… somebody!

    lochoe

    (@lochoe)

    how about if you want to hide in 2 pages.. not only one page..??

    joseffg

    (@joseffg)

    Ok this seems to be the same problem I am having.

    Right now I am trying to alter the iNove theme just so I can have my sidebar showing up on my blog post page and my individual post pages. I do not want the sidebar on any other page of the site because I run a portfolio site and I need to keep things clean. Also note that I use a static start page.

    This particular theme calls the sidebar using the footer.php file and I tried to make it so that file didn’t do that, but that was a lost cause on my part. I feel as though I almost have the solution by using the following code at the top of my footer.php file.

    </div>
    	<!-- main END -->
    
    <?php if(is_page('Demo Reel')) : ?><?php get_sidebar();?><?php endif; ?>
    
    	<div class="fixed"></div>
    </div>
    <!-- content END -->

    Now, this works perfectly, except that it only works on the pages that I don’t want the sidebar on. So now I can put the sidebar on any page I want, except the blog page and individual post pages.

    Anybody have any thoughts or a better way of fixing this problem?

    *Edit* Solved my own problem, thanks! ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Can you hide the sidebar in a Page?’ is closed to new replies.