Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Created July 3, 2013 14:45
Show Gist options
  • Save rickrduncan/5918664 to your computer and use it in GitHub Desktop.
Save rickrduncan/5918664 to your computer and use it in GitHub Desktop.
Filter the genesis_seo_title function to use an image for the logo instead of a background image.
<?php
//* Do NOT include the opening php tag
// Filter the genesis_seo_title function to use an image for the logo instead of a background image
add_filter( 'genesis_seo_title', 'b3m_header_title', 10, 3 );
function b3m_header_title( $title, $inside, $wrap ) {
$inside = sprintf( '<a href="%s" title="%s"><img src="'. get_stylesheet_directory_uri() .'/images/logo.png" alt="%s" /></a>', trailingslashit( home_url() ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
return sprintf( '<%1$s id="title">%2$s</%1$s>', 'h4', $inside );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment