0
Checking If Sidebar Widget Is Active
Use this to check if you currently have widgets being used in the sidebar. Useful for doing something else if there are no active widgets.
<?php if ( function_exists('is_sidebar_active') && is_sidebar_active('sidebar') ) { ?>
<div id="sidebar">
<ul>
<?php dynamic_sidebar('sidebar'); ?>
</ul>
</div>
<?php } ?>





