New footer sidebars: left – right, and footer-under-01, 02, 03

//* New footer sidebars: left - right, and footer-under-01, 02, 03

    //** Register New Footer widget areas.
    genesis_register_widget_area(
        array(
        'id' => 'footer-left',
        'name' => __('Footer Left', 'child-theme-prefix'),
        'description' => __('Footer Left.', 'child-theme-prefix'),
        ) 
    );
    genesis_register_widget_area(
        array(
        'id' => 'footer-right',
        'name' => __('Footer Right', 'child-theme-prefix'),
        'description' => __('Footer Right.', 'child-theme-prefix'),
        ) 
    );
	genesis_register_widget_area(
        array(
        'id' => 'footer-under-01',
        'name' => __('footer-under-01', 'child-theme-prefix'),
        'description' => __('footer-under-01', 'child-theme-prefix'),
        ) 
    );
	genesis_register_widget_area(
        array(
        'id' => 'footer-under-02',
        'name' => __('footer-under-02', 'child-theme-prefix'),
        'description' => __('footer-under-02', 'child-theme-prefix'),
        ) 
    );
	genesis_register_widget_area(
        array(
        'id' => 'footer-under-03',
        'name' => __('footer-under-03', 'child-theme-prefix'),
        'description' => __('footer-under-03', 'child-theme-prefix'),
        ) 
    );

	
	
	 /** Hook and display New Footer on footer. */
	    add_action('genesis_before_footer', 'custom_footer_bar');
   
    function custom_footer_bar(){
        if (! ( is_active_sidebar('footer-left') || is_active_sidebar('footer-right') ) ) {
        return;
        }
     
	 	echo '<div class="custom_footer_bar"><div class="wrap">';
	 
        echo '<div class="footer-top-bar"><div class="wrap">';
     
        genesis_widget_area(
            'footer-left', array(
            'before' => '<div class="footer-widget-area footer-left">',
            'after' => '</div>',
            ) 
        );
     
        genesis_widget_area(
            'footer-right', array(
            'before' => '<div class="footer-widget-area footer-right">',
            'after' => '</div>',
            ) 
        );
     
        echo '</div></div>';
		
        echo '<div class="footer-bottom-bar"><div class="wrap">';
     
        genesis_widget_area(
            'footer-under-01', array(
            'before' => '<div class="footer-widget-area footer-under-01">',
            'after' => '</div>',
            ) 
        );
     
        genesis_widget_area(
            'footer-under-02', array(
            'before' => '<div class="footer-widget-area footer-under-02">',
            'after' => '</div>',
            ) 
        );

        genesis_widget_area(
            'footer-under-03', array(
            'before' => '<div class="footer-widget-area footer-under-03">',
            'after' => '</div>',
            ) 
        );

        echo '</div></div>';
		echo '</div></div>';
    }
Scroll to Top