Last active
June 13, 2017 17:51
-
-
Save mikeoberdick/5242a60fd8787f0857333552ed7c03d9 to your computer and use it in GitHub Desktop.
Build Your Firm Blog Function Adds
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
//* Remove the site description | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); | |
//* Custom Footer | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'd4tw_custom_footer' ); | |
function d4tw_custom_footer() { | |
?> | |
<p>Copyright © <?php the_date('Y') ?> · <a href = "<?php echo site_url(); ?>"><?php echo site_url(); ?></a></p> | |
<?php | |
} | |
//* Logo URL | |
function d4tw_logo_url( $title, $inside, $wrap ) { | |
$inside = sprintf( '<a href="%s" title="%s"></a>', esc_url( 'http://www.mainpagehere.com' ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) ); | |
$title = sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap ); | |
return $title; | |
} | |
add_filter( 'genesis_seo_title', 'd4tw_logo_url', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment