The SEO Title Tag plugin is something I can't live without. Is it possible to integrate this with Thesis?
To make the plugin work, the author says you need to place something like this between the title tag in the header:
<?php if (function_exists('seo_title_tag')) { seo_title_tag(); } else { bloginfo('name'); wp_title();} ?>
So, in the function.php file here's what I've done:
function childtheme_doctitle() {
if (function_exists('seo_title_tag')) { $my_elements = seo_title_tag(); } else { $my_elements = bloginfo('name'); wp_title();}
return $my_elements;
}
add_filter('thematic_doctitle', 'childtheme_doctitle');
But for some reason, the title text appears outside of the title tags, like this:
This is the title text <title></title>
The same thing happens when I use bloginfo('name') instead of get_bloginfo('name'). What am I missing?