• Resolved magneto664

    (@magneto664)


    Hi guys i fighting with a custom theme and i try add a widget area to taxonomy file when a category is empty code looks:

    else:
    		echo '<h2>Category:</h2>';
    		echo '<div class="clear"></div>';
    
    endif;

    How to add to this code part a widget area?

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

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    tnx

    • This topic was modified 7 years, 6 months ago by bdbrown.
    • This topic was modified 7 years, 6 months ago by bdbrown.
  • The topic ‘widget area if category is empty.’ is closed to new replies.