Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 15, 2012 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/1837523 to your computer and use it in GitHub Desktop.
Save billerickson/1837523 to your computer and use it in GitHub Desktop.
<?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