Skip to content

Instantly share code, notes, and snippets.

@mikeoberdick
Last active June 13, 2017 17:51
Show Gist options
  • Save mikeoberdick/5242a60fd8787f0857333552ed7c03d9 to your computer and use it in GitHub Desktop.
Save mikeoberdick/5242a60fd8787f0857333552ed7c03d9 to your computer and use it in GitHub Desktop.
Build Your Firm Blog Function Adds
//* 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 &copy; <?php the_date('Y') ?> &middot; <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