Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created November 28, 2019 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/6aadd51aa4eb4abcd7c796383478474e to your computer and use it in GitHub Desktop.
Save braddalton/6aadd51aa4eb4abcd7c796383478474e to your computer and use it in GitHub Desktop.
Filter Genesis Footer links https://wp.me/p1lTu0-iLf
add_action( 'genesis_footer_output', 'filter_genesis_footer_links' );
function filter_genesis_footer_links() {
$text = sprintf( '[footer_copyright before="%s "] · [footer_childtheme_link before="" after=" %s"] [footer_genesis_link url="https://www.studiopress.com/" before=""] · [footer_wordpress_link] · [footer_loginout]', __( 'Copyright', 'genesis' ), __( 'on', 'genesis' ) );
$creds = $text ? sprintf( '<div class="creds"><p>%s</p></div>', $text ) : '';
$output = $creds;
if ( genesis_html5() ) {
$output = '<p>' . genesis_strip_p_tags( $text ) . '</p>';
}
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment