2011-07-28 63 views

回答

0

試試這個

<?php if (is_active_sidebar('your-widget-area')) : ?> 
<!--This div will not display if there is no active widgets 
    so place your div inside if condition--> 
<div> 

<?php dynamic_sidebar('your-widget-area'); ?> 

</div>   
<?php endif; ?>