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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk