The Genesis footer widgets (not to be confused with the site footer) is the set of widget areas that usually displays between the main content area and the site footer. Your child theme can configure the footer widgets with any number of columns.
With a Genesis theme, it’s easy to change the position of the footer widgets to better suit your design, rewrite the function that outputs them or remove them altogether. For example, many Genesis themes include a Landing Page template that removes many distracting elements, including the footer widgets.
The function responsible for outputting the footer widget areas is
This function checks that the child theme has indicated how many columns it supports for the footer widgets. If so, it checks that at least the first column has widgets. If at least the first column has widgets, it outputs all columns of footer widgets and marks them up in either the HTML5 or XHTML format depending on the child theme.
If the child theme also supports the semantic headings accessibility feature, the footer widget areas are preceded by a semantic heading for screen reader users only.
genesis_footer_widget_areas is hooked to
genesis_before_footer at the default priority 10.
Reposition the Footer Widgets
Below is the basic code to reposition the footer widget areas to another hook. Just replace
another_hook with the name of your desired hook.
Rewrite the Footer Widgets
Below is the basic code to rewrite the footer widget areas. Just replace
your_function_here with the name of the function that outputs your content.
Remove the Footer Widgets
The recommended way to remove the footer widgets across the whole site is by removing theme support.
To remove the footer widgets under certain circumstances only, below is the basic code that you can use in conjunction with the template hierarchy.
Example 1: reposition the footer widgets below the footer.
Example 2: pop the footer widgets out of the
<div class="site-container"> (HTML5) or
<div id="wrap"> (XHTML) markup element.
The structure of the markup produced by the function
genesis_footer_widget_areas is as follows for HTML5 and XHTML themes respectively.
Genesis Simple Hooks
This function is not unhookable via Genesis Simple Hooks.
genesis_footer_widget_areas – the entire marked up footer widget areas pass through this filter before being output.
genesis_footer_widget_areas has been included since version 1.6.0.
genesis_footer_widget_areas is located in lib/structure/footer.php.
- How to Configure Footer Widgets with Genesis
- How to Insert Content Before or After the Footer Widgets with Genesis
- How to Remove, Rewrite or Move the Site Footer with Genesis
- How to Add Extra Content to the Site Footer with Genesis
Relevant tutorials from the Genesis community.