Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active March 13, 2018 09:53
Show Gist options
  • Save studiopress/1c7742ec4cd8550def7bf209cd777a94 to your computer and use it in GitHub Desktop.
Save studiopress/1c7742ec4cd8550def7bf209cd777a94 to your computer and use it in GitHub Desktop.
Customize site footer with the Genesis Framework.
<?php
// Do NOT include the opening php tag.
// Remove site footer.
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
// Customize site footer
add_action( 'genesis_footer', 'sp_custom_footer' );
function sp_custom_footer() { ?>
<div class="site-footer"><div class="wrap"><p>Handcrafted with <span class="dashicons dashicons-heart"></span> by moi. Powered by the <a href="https://www.studiopress.com/">Genesis Framework</a>. <a href="http://briangardner.com/contact/">Get in Touch</a>.</p></div></div>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment