Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mtweldon

    (@mtweldon)

    If I wanted to use two different sidebar.php files would I just create sidebar2.php and then put in <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?>

    <?php /* If this is the creator page */ if ( is_page(3) ) { ?>
    <?php } ?> ?

    Thread Starter mtweldon

    (@mtweldon)

    K have that in the functions like that.

    I changed it to sidebar(1) and sidebar(2) but it still does the same thing.

    here is what I am basically doing in sidebar.php
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?>

    <?php /* If this is the creator page */ if ( is_page(3) ) { ?>
    <?php } ?>

    <?php endif; ?>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>
    <?php /* If this is the frontpage */ if ( is_home()) { ?>
    <?php } ?>
    <?php endif; ?>

    *(‘Sidebar 1’) does the same thing as (1) I believe

Viewing 2 replies - 1 through 2 (of 2 total)