Change Logo URL

<?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;
}
view raw gistfile1.aw hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk