Created
November 28, 2019 02:19
-
-
Save braddalton/6aadd51aa4eb4abcd7c796383478474e to your computer and use it in GitHub Desktop.
Filter Genesis Footer links https://wp.me/p1lTu0-iLf
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
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