The SEO title output for the plugin doesn’t work as expected

Last update: 15 May, 2017

You've set up a template for your titles, but things get added to it when they're output? For instance, you're getting double titles? Your branding is showing up twice? The title doesn't match what you've entered into the settings?

Title-tag support

If your theme is compatible with WordPress 4.1, it should declare theme support for the title-tag. Your theme should use add_theme_support() in the functions.php file in order to support title tag, like so:

add_theme_support( 'title-tag' );

Note: If your theme does not support this, contact the theme's developer to have it fixed. If the issue remains, please use one of the following fallback methods.


If your theme does not declare theme support for the title tag, you have two options: edit your theme files or force a rewrite.

Edit Your Theme Files

Warning: This is a temporary solution as manual edits made to theme files may be overwritten by future theme updates.

Search your theme's files for the title element. This is typically found in the header.php file. Change the title element to just this:

<title><?php wp_title(''); ?></title>

Force a Rewrite

Note: This can considerably slow down your site and is the least desirable option of the two. This is not available when your theme already supports dynamic titles as discussed here.

The second option is to enable "Force rewrite titles" on the SEO -> Titles & Metas page.

Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
The ‘SEO’ settings will expand providing you additional options. If you don't see the 'Titles & Metas' setting in your 'SEO' menu, please enable your advanced settings first.

Yoast SEO > Dashboard (Advanced disabled)

Menu with advanced settings disabled
Enable advanced features

Click on 'Titles & Metas'.
Yoast SEO > Titles & Metas
Under the 'General' tab, check the box "Enable force rewrite titles".

Save changes.

Was this article helpful? ·