Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 30, 2011 04:53
Show Gist options
  • Save billerickson/1325515 to your computer and use it in GitHub Desktop.
Save billerickson/1325515 to your computer and use it in GitHub Desktop.
Italicize "of" in Genesis Site Title
<?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