• Hi – I added a third footer to Twenty Seventeen but no widgets I add to it will display. I’m new to coding and would really appreciate some help figuring this out. Also noticed that the Customize area only shows two footers so am confused by this. I added this code for a third footer:

    In functions.php
    register_sidebar( array(
    ‘name’ => __( ‘Footer 3’, ‘twentyseventeen’ ),
    ‘id’ => ‘sidebar-4’,
    ‘description’ => __( ‘Add widgets here to appear in your footer.’, ‘twentyseventeen’ ),
    ‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</section>’,
    ‘before_title’ => ‘<h2 class=”widget-title”>’,
    ‘after_title’ => ‘</h2>’,
    ) );

    In footer-widgets.php
    <?php
    /**
    * Displays footer widgets if assigned
    *
    * @package WordPress
    * @subpackage Twenty_Seventeen
    * @since 1.0
    * @version 1.0
    */

    ?>

    <?php
    if ( is_active_sidebar( ‘sidebar-2’ ) ||
    is_active_sidebar( ‘sidebar-3’ ) ||
    is_active_sidebar( ‘sidebar-4’ ) ) :
    ?>

    <aside class=”widget-area” role=”complementary”>
    <?php
    if ( is_active_sidebar( ‘sidebar-2’ ) ) { ?>
    <div class=”widget-column footer-widget-1″>
    <?php dynamic_sidebar( ‘sidebar-2’ ); ?>
    </div>
    <?php }
    if ( is_active_sidebar( ‘sidebar-3’ ) ) { ?>
    <div class=”widget-column footer-widget-2″>
    <?php dynamic_sidebar( ‘sidebar-3’ ); ?>
    </div>
    <?php }
    if ( is_active_sidebar( ‘sidebar-4’ ) ) { ?>
    <div class=”widget-column footer-widget-3″>
    <?php dynamic_sidebar( ‘sidebar-4’ ); ?>
    </div>
    <?php } ?>
    </aside><!– .widget-area –>

    <?php endif; ?>

    • This topic was modified 7 years, 3 months ago by Arlen.
  • The topic ‘Footer widgets not appearing’ is closed to new replies.