Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Adding fixed value to custom doctitle

  • Resolved frisco


    Using some SEO controls for WP, it is possible to add a fixed value (such as the site name) + a separator (such as a dash) either before or after the custom doctitle.

    However, with WordPress SEO, entering any value as a custom doctitle clears templates previously set, so you can’t do it with templates.

    Is there a way to add a fixed value like the site name, a separator, and specify whether to put it at the end or beginning of the custom doctitle? I haven’t found a way to do this. If not, I think this would be a good feature to add.

    You could get doctitles like the one below. Otherwise, one would have to consistently type the fixed value and separator on every post or page., the testing specialists – Our Custom Doctitle on Something

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joost de Valk


    You could do this in your theme, there’s currently no way to do it with the plugin. But if you do wp_title(”); in your theme and add what you want before or after, and leave “force rewrite titles” in the WP SEO settings unchecked, it’ll work.

    Thanks for the follow-up, Joost. I’m working on doing it in the theme, but this is a less desirable alternative, because it undercuts one of the big advantages of your plugin, the snippet preview.

    How about a setting that applies to all templates other than home page where a user must pick one from this list (1st is sort of current plugin default operation):

    – use Title template as default SEO Title
    – add Title template to left of SEO Title
    – add Title template to right of SEO Title

    Your own site adds “- Yoast” to the right of your doctitle, but this only works because your post title (h1) = doctitle. If you want to have a different H1 and doctitle, you lose the ability to automatically add a fixed element such as the site name and benefit from the snippet preview.

    Hope you decide to add this in the future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Adding fixed value to custom doctitle’ is closed to new replies.