Support » Fixing WordPress » Is Active Widget

  • Resolved Robert Dall

    (@rdall)


    Since their are no stupid questions and it is Friday afternoon on December 30th… 

    I am still slightly confused as to why I would want to call

    <?php if ( is_active_sidebar( 'frontpage' ) ) : ?>
    		<?php dynamic_sidebar( 'frontpage' ); ?>

    instead of

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('frontpage') ) : ?>
    
    	<?php endif; ?>

    Or do these functions serve different purposes I am not aware of.

    Thanks

Viewing 1 replies (of 1 total)
  • Ahh Okay… So they both do different things and is_active_sidebar is used if their isn’t any widget in the sidebar it can call some static text and image or something else… 

    I knew my head wasn’t full screwed on this afternoon…

Viewing 1 replies (of 1 total)
  • The topic ‘Is Active Widget’ is closed to new replies.