• I’m working on a website using the Twentyeleven theme – and then creating my custom themes. I created a new static page as my home page and got it looking how I want it with 2 widgets on the sidebar.

    Now here is the problem. On one page I don’t want any sidebar. I don’t want any widgets. All I want is to display some posts full page. One some other subpages I want the sidebar but I want different widgets to display.

    Is there a way to accomplish this or do you have to have the same widgets on every page in the same layout? I tried creating a custom template where I completely remove the <?php get_sidebar(); ?> but the sidebar and widgets still display on the page that I set that template to. I also tried using widget logic and put in !is_page(‘news’). But the widgets still display on the news page.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter woodson02

    (@woodson02)

    Yes. Changed name to front-page.php. Viewed it and the front page still displays correctly. Viewed the “news” page. Still has widgets at the bottom.

    Perhaps you need to double-check page.php?

    Thread Starter woodson02

    (@woodson02)

    get_header(); ?>
    
    		<div id="primary">
    
    			<div id="content" role="main">
    
    				<?php the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<?php comments_template( '', true ); ?>
    
    			</div><!-- #content -->
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

    No call of the sidebar. Just doesn’t make since that the widgets placed in the sidebar appear if the setting/reading/pages is set to news. But the widgets don’t display if the setting/reading/pages is set to blank. I miss my basic html/css that I understood :). But the functionality that wordpress ads is a must because I want to add in testimonials and widget support.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Controlling Widgets and Sidebars’ is closed to new replies.