• Skip to main content

Julian Thomas Screawn

B.A. ,B.ED. ,M.ED.

  • Home
  • About
  • Websites
  • Resources
  • Coding
  • Contact

How to add a genesis footer with 4 widget areas

2025/05/15

Define number of footer widgets:

// Add support for 4-column footer widgets
add_theme_support( 'genesis-footer-widgets', 4 );

Add hook for footer widgets:

// Add widgeted footer section
add_action('genesis_before_footer', 'adn_include_footer_widgets'); 

function adn_include_footer_widgets() {


if(is_active_sidebar('footer-1') or is_active_sidebar('footer-2') or is_active_sidebar('footer-3') or is_active_sidebar('footer-4')){ ?>

<div id="adn-footer" class="container-fluid">
<div class="row">

<?php 
if (is_active_sidebar('footer-1')) {
	
genesis_widget_area ('footer-1', array(
        'before' => '<div class="col-lg-3">',
        'after' => '</div>',
	) );  
}


if (is_active_sidebar('footer-2')) {
genesis_widget_area ('footer-2', array(
        'before' => '<div class="col-lg-3">',
        'after' => '</div>',
	) );  
}


if (is_active_sidebar('footer-3')) {
genesis_widget_area ('footer-3', array(
        'before' => '<div class="col-lg-3">',
        'after' => '</div>',
	) );  
}


if (is_active_sidebar('footer-4')) {
genesis_widget_area ('footer-4', array(
        'before' => '<div class="col-lg-3">',
        'after' => '</div>',
	) );  ?>
</div>
</div>
<?php
}

}
}

Filed Under: Genesis Framework

Copyright © 2025 · Servicing Moncton, Dieppe, Riverview and beyond! · Moncton Meditation · Moncton English Tutor