<?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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters