Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'genesis_seo_title', 'be_change_logo_url', 10, 3 );
/**
* Change Logo URL
* @author Bill Erickson
* @link http://www.billerickson.net/code/change-logo-url
*
* @param string $title
* @param string $inside
* @param string $wrap
* @return string
*/
function be_change_logo_url( $title, $inside, $wrap ) {
/** Set Custom URL **/
$url = 'http://www.htc.com';
/** Build the inside **/
$inside = sprintf( '<a href="%s" title="%s">%s</a>', esc_url( $url ), esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
/** Build the Title */
$title = sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap );
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment