[Plugin: WordPress SEO by Yoast] Easy but important SEO improvement – changing H1
-
I got one idea for your plugin – option to set special H1 same way, as you do with Title – with this feature, you could have different page name and different H1, what is sometimes very helpfull, as post_title is normaly used on too many places (e.g. menu, breadcrumb …) – many of them you can use, but it is stupid to change it on 5 places just because you need a different H1
I’m using it for few years, the code looks like
add_filter('the_title','mc_the_title'); function mc_the_title($the_title) { global $post; if(in_the_loop()) { $pagetitle = get_post_meta($post->ID,'_h1',true); if(!empty($pagetitle)) $the_title = $pagetitle; } return $the_title; }
i think you will understand
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WordPress SEO by Yoast] Easy but important SEO improvement – changing H1’ is closed to new replies.