Skip to content

Instantly share code, notes, and snippets.

@rolandinsh
Created September 14, 2012 10:18
Show Gist options
  • Save rolandinsh/3721176 to your computer and use it in GitHub Desktop.
Save rolandinsh/3721176 to your computer and use it in GitHub Desktop.
!WPSEO_VERSION
<?php
/* http://simplemediacode.info/snippets/better-page-title-with-and-without-yoast-wordpress-seo-plugin/ */
?>
<title>
<?php if (!defined('WPSEO_VERSION')) {
// if there is no WordPress SEO plugin activated
wp_title(' | ', true, 'right');
echo get_bloginfo('name')
.' '.get_bloginfo('description'); // or some WordPress default
}else {
// WordPress SEO plugin active
wp_title();
} ?>
</title>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment