• I am lost please help. I created 3 new widget areas for a custom home page template. Registered them all in functions.php and they show up in admin panel. First 2 widgets work fine, but 3rd one I drop a widget in it, click save and then view site and it is gone. Happens in FF and Chrome. WP Versions 2.8 and 2.9. Plugins deactivated. Trying it on the default theme even, still fail. Is this code wrong somehow? Thank you.
    Link to code just in case. Pastie Here

    <!--======================================*/
    /*========FROM FUNCTIONS.PHP==============*/
    /*======================================-->
    
    if (function_exists('register_sidebar')) {
    
    	register_sidebar(array(
    		'name' => 'Left Column',
    		'id'   => 'left_column',
    		'description'   => 'Widget area for home page left column',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h4>',
    		'after_title'   => '</h4>'
    	));
    	register_sidebar(array(
    		'name' => 'Center Column',
    		'id'   => 'center_column',
    		'description'   => 'Widget area for home page center column',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h4>',
    		'after_title'   => '</h4>'
    	));
    	register_sidebar(array(
    		'name' => 'Right Column',
    		'id'   => 'Right_column',
    		'description'   => 'Widget area for home page right column',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h4>',
    		'after_title'   => '</h4>'
    	));
    
    }
    
    <!--======================================*/
    /*========WIDGET AREAS====================*/
    /*======================================-->
    
    <div class="column">
    
    	<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('left_column')) : else : ?>
    			<p><strong>Widget Ready</strong></p>
    			<p>This left_column is widget ready! Add one in the admin panel.</p>
    		<?php endif; ?>
    </div>
    
    <div class="column">
    	<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('center_column')) : else : ?>
    			<p><strong>Widget Ready</strong></p>
    			<p>This center_column is widget ready! Add one in the admin panel.</p>
    		<?php endif; ?>
    </div>
    
    <div class="column">
    	<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('right_column')) : else : ?>
    			<p><strong>Widget Ready</strong></p>
    			<p>This right_column is widget ready! Add one in the admin panel.</p>
    		<?php endif; ?>
    </div>
Viewing 1 replies (of 1 total)
  • 'id'   => 'Right_column',

    There’s a capital letter in the third declared sidebar..

    ..but not when you call it further down..

Viewing 1 replies (of 1 total)
  • The topic ‘Added 3 widget areas, 1 will not save’ is closed to new replies.