[resolved] Is Active Widget (2 posts)

  1. Robert Dall
    Posted 4 years ago #

    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.


  2. Robert Dall
    Posted 4 years ago #

    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…

Topic Closed

This topic has been closed to new replies.

About this Topic