Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Tag: site title

Change the Globally

If you want to add something to the <title>, without adding to the blog title, you can directly change that with a few lines of code:

add_filter( 'wp_title', 'append_to_title', 10, 3 );
function append_to_title( $title, $sep, $seplocation ) {
	return $title .= "OMGBBQFTW $sep ";
}
Posted on April 10, 2011March 1, 2012Categories WordPress BitsTags site titleLeave a comment on Change the Globally
Proudly powered by WordPress