Emphasizes a Wordpress theme - adding a second sidebar

Looked at a Wordpress site using the underline theme (_s)

I have one sidebar, but I want to make a second one to be on the same page. (containing different widgets)

I added a new sidebar to the functions.php function and appears on the login screen in Wordpress, and I can drop widgets into it. However, I cannot get it to show on the actual web page. (first sidebar is working fine)

Does anyone know how to do this or know a tutorial ...

thank

+2
source share
1 answer

"sidebar.php" . :

<div id="secondary" class="widget-area" role="complementary">
    <?php do_action( 'before_sidebar' ); ?>

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    <?php endif; // end sidebar-1 widget area ?>

</div><!-- #secondary -->

if, . , functions.php.

, , "div", . "sidebar-lower":

<div id="secondary" class="widget-area" role="complementary">
    <?php do_action( 'before_sidebar' ); ?>

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    <?php endif; // end sidebar-1 widget area ?>

    <?php if ( ! dynamic_sidebar( 'sidebar-lower' ) ) : ?>
    <?php endif; // end sidebar-lower widget area ?>

</div><!-- #secondary -->
0

All Articles