Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.