Skip to content

Instantly share code, notes, and snippets.

@jonbellah
Last active December 11, 2015 09:58
Show Gist options
  • Save jonbellah/4583383 to your computer and use it in GitHub Desktop.
Save jonbellah/4583383 to your computer and use it in GitHub Desktop.
Custom footer with Genesis Framework
/** Customize the footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5);
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15);
function child_custom_footer() {
if(is_front_page()) {?>
<footer>
<!-- Home page footer -->
</footer>
<?php }
elseif (!is_front_page()) {?>
<footer>
<!-- Your other footer -->
</footer>
<?php }
}
add_action( 'genesis_footer', 'child_custom_footer' );
@jonbellah
Copy link
Author

Hat tip to Sue B. for noticing my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment