The Genesis site footer (not to be confused with the footer widgets) usually displays at the very bottom of every page of your website. It usually consists of a copyright notice and/or credits.
With a Genesis theme, it’s easy to remove the site footer altogether or just rewrite or reposition it to better suit your design. For example, many Genesis themes include a Landing Page template that removes many distracting elements, including the entire footer.
The function responsible for outputting the content of the site footer is
This function checks if the theme is HTML5 or XHTML. It assembles the content of the site footer, which consists of the back to top text and the footer credits text for XHTML themes, and only the footer credits text for HTML5 themes. Finally, it marks up and outputs the content of the site footer.
genesis_do_footer is hooked to
genesis_footer at the default priority 10.
Remove the Site Footer
Below is the basic code to remove the site footer altogether.
Rewrite the Site Footer
Below is the basic code to rewrite the content of the site footer. Just replace
your_function_here with the name of the function that outputs your content.
Reposition the Site Footer
Below is the basic code to reposition the content of the site footer to another hook. Just replace
another_hook with the name of your desired hook.
Example 1: rewrite the site footer to include an image.
Example 2: pop the site footer 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_do_footer is as follows for HTML5 and XHTML themes respectively. Note the presence of the back to top text for XHTML but not HTML5 themes.
Genesis Simple Hooks
If you’re a Genesis Simple Hooks user, you can find
genesis_footer in the Footer Hooks section and select to unhook
genesis_do_footer. You can optionally add your own replacement content in the box.
There are three filters on the output of this function:
genesis_footer_backtotop_text – use this filter to edit the back to top text (only applicable for XHTML themes).
genesis_footer_creds_text – use this filter to edit the main footer text, often used for a copyright notice or credits.
genesis_footer_output – the entire marked up content of the footer passes through this filter before being output.
genesis_do_footer has been included since version 1.0.1.
genesis_do_footer is located in lib/structure/footer.php.