• I’m trying to add widgets to my sidebar, and they’re not showing up. I followed EXACTLY the instructions at digwp.com (“How to Widgetize Your WordPress Theme in 2 Steps”). I added this to my functions.php:

    if (function_exists('register_sidebar')) {
    
    	register_sidebar(array(
    		'name' => 'Widgetized Area',
    		'id'   => 'widgetized-area',
    		'description'   => 'This is a widgetized area.',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</div>',
    		'before_title'  => '<h4>',
    		'after_title'   => '</h4>'
    	));
    
    }

    Then I added this to sidebar.php:

    <div id="widgetized-area">
    
    	<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('widgetized-area')) : else : ?>
    
    	<div class="pre-widget">
    		<p><strong>Widgetized Area</strong></p>
    		<p>This panel is active and ready for you to add some widgets via the WP Admin</p>
    	</div>
    
    	<?php endif; ?>
    
    </div>

    Then I went to admin > appearance > widgets, and dragged two widgets into the sidebar (“Theme My Login” and, just to compare, “Meta”) and clicked “Save.” Actually, I clicked “Save” several times, just to be sure.

    But nothing is showing up in the sidebar except the “This panel is active…” notice.

    I’m at a loss…what have I not done that is causing this?

    (Site is https://www.whodatsocialclub.com…it hasn’t launched, but it’s live so I want to get this straightened out before any traffic starts showing up.)

Viewing 1 replies (of 1 total)
  • Thread Starter Who_Dat

    (@who_dat)

    Solved…the problem was that I was editing the site in an older version of Safari, and even though it looked as though the widgets were being added to the sidebar, they weren’t. I logged in using Firefox and the widget area was bare. Added “Theme My Login” and saved, and there it was.

Viewing 1 replies (of 1 total)
  • The topic ‘Widgets not working’ is closed to new replies.