Last active
December 11, 2015 09:58
-
-
Save jonbellah/4583383 to your computer and use it in GitHub Desktop.
Custom footer with Genesis Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hat tip to Sue B. for noticing my mistake.