Skip to content

Instantly share code, notes, and snippets.

@deeman
Created April 8, 2019 08:11
Show Gist options
  • Select an option

  • Save deeman/e21121eba25079e8b30e484b171edc27 to your computer and use it in GitHub Desktop.

Select an option

Save deeman/e21121eba25079e8b30e484b171edc27 to your computer and use it in GitHub Desktop.
Genesis Framework - Custom Footer
<?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="#">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