Created
September 14, 2012 10:18
-
-
Save rolandinsh/3721176 to your computer and use it in GitHub Desktop.
!WPSEO_VERSION
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 | |
/* 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