Created
October 30, 2011 04:53
-
-
Save billerickson/1325515 to your computer and use it in GitHub Desktop.
Italicize "of" in Genesis Site 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
<?php | |
/** | |
* Italicize "of" in Site Title | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/genesis-customize-site-title | |
* | |
* @param string $title full title | |
* @param string $inside text | |
* @param string $wrap html wrapper | |
* @return string full title | |
*/ | |
function be_customize_site_title($title, $inside, $wrap) { | |
$custom = str_replace("of", "<em>of</em>", $title); | |
return $custom; | |
} | |
add_filter('genesis_seo_title','be_customize_site_title', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment