More than one widget does not appear

0

More than one wordpress widget does not work. Can anybody help me. from now on, obeyed.

/**
 * Register widget area.
 *
 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
 */
function argo_widgets_init() {
    register_sidebar( array(
        'name'          => esc_html__( 'Sidebar', 'argo' ),
        'id'            => 'sidebar-1',
        'description'   => esc_html__( 'Add widgets here.', 'argo' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s">',
        'after_widget'  => '</section>',
        'before_title'  => '<h4 class="widget-title">',
        'after_title'   => '</h4>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Area 1', 'argo' ),
        'id'            => 'footer_area_1',
        'description'   => esc_html__( 'Add widgets for widget area 1 here.', 'argo' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s widget-area-1">',
        'after_widget'  => '</section>',
        'before_title'  => '<h4 class="widget-title">',
        'after_title'   => '</h4>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Area 2', 'argo' ),
        'id'            => 'footer_area_2',
        'description'   => esc_html__( 'Add widgets for widget area 2 here.', 'argo' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s widget-area-2">',
        'after_widget'  => '</section>',
        'before_title'  => '<h4 class="widget-title">',
        'after_title'   => '</h4>',
    ) );

    register_sidebar( array(
        'name'          => esc_html__( 'Footer Area 3', 'argo' ),
        'id'            => 'footer_area_3',
        'description'   => esc_html__( 'Add widgets for widget area 3 here.', 'argo' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s widget-area-3">',
        'after_widget'  => '</section>',
        'before_title'  => '<h4 class="widget-title">',
        'after_title'   => '</h4>',
    ) );
}
add_action( 'widgets_init', 'argo_widgets_init' );

footer

<footer id="colophon" class="site-footer">
        <?php if ( $argo_footer_cols != '' ): ?>
            <div class="container footer">
                <div class="row">
                <?php if ( $argo_footer_cols == '3'): ?>
                    <?php if ( is_active_sidebar( 'footer_area_1' ) ): ?>
                        <div class="col-md-4 footer-area-1">
                            <?php dynamic_sidebar( 'footer_area_1' ); ?>
                        </div>
                    <?php endif; ?>
                    <?php if ( is_active_sidebar( 'footer_area_2' ) ): ?>
                        <div class="col-md-4 footer-area-2">
                            <?php dynamic_sidebar( 'footer_area_2' ); ?>
                        </div>
                    <?php endif; ?>
                    <?php if ( is_active_sidebar( 'footer_area_3' ) ): ?>
                        <div class="col-md-4 footer-area-3">
                            <?php dynamic_sidebar( 'footer_area_3' ); ?>
                        </div>
                    <?php endif; ?>
                <?php endif ?>
                <?php if ( $argo_footer_cols == '2'): ?>
                    <?php if ( is_active_sidebar( 'footer_area_1' ) ): ?>
                        <div class="col-md-6 footer-area-1">
                            <?php dynamic_sidebar( 'footer_area_1' ); ?>
                        </div>
                    <?php endif; ?>
                    <?php if ( is_active_sidebar( 'footer_area_2' ) ): ?>
                        <div class="col-md-6 footer-area-2">
                            <?php dynamic_sidebar( 'footer_area_2' ); ?>
                        </div>
                    <?php endif; ?>
                <?php endif ?>
                <?php if ( $argo_footer_cols == '1'): ?>
                    <?php if ( is_active_sidebar( 'footer_area_1' ) ): ?>
                        <div class="col-md-12 footer-area-1">
                            <?php dynamic_sidebar( 'footer_area_1' ); ?>
                        </div>
                    <?php endif; ?>
                <?php endif ?>
            </div>
        </div>
        <?php endif ?>
        <div class="site-info">
            <div class="container">
                <?php if ( get_theme_mod( 'argo_copyright' ) != '' ): ?>
                    <p>
                        <?php echo argo_sanitize_text_allow_tags( get_theme_mod( 'argo_copyright', 'Copyright 2017 <a href="#"> Kemoboy Design </a> | All Rights Reserved' )) ?>
                    </p>
                <?php endif ?>
            </div>
        </div><!-- .site-info -->
    </footer><!-- #colophon -->
    
asked by anonymous 05.06.2018 / 03:29

0 answers