Back to Community

How to Fix Duplicate or Missing Title Tags in Twenty Eleven

42 threads Sep 16, 2025 ThemeTwenty eleven

Content

Many users of the Twenty Eleven theme encounter issues with their page titles. A common problem reported across support forums is the theme generating duplicate title tags, often combining the site name with the post title in a way that conflicts with SEO plugins like Yoast SEO. Conversely, other users find their titles are missing entirely due to custom CSS. This guide will explain why these issues occur and provide the most common solutions.

Why This Happens

The Twenty Eleven theme has built-in functionality for generating title tags. When a plugin like Yoast SEO is installed, both the theme and the plugin may try to output a title tag, leading to duplication. In other cases, users or child themes might apply CSS that inadvertently hides titles from view, making them seem missing to visitors while they remain in the page's HTML code.

Common Solutions

1. Resolving Duplicate Title Tags with an SEO Plugin

If you are using an SEO plugin and see two title tags, the plugin likely has a setting to control the theme's native title output.

  • Navigate to your SEO plugin's settings (e.g., Yoast SEO → Search Appearance).
  • Look for an option often labeled "Force rewrite titles" or "Remove title present." Enabling this can often suppress the theme's title output, leaving only the plugin's optimized title.
  • If this setting does not resolve the issue, the next step is to add a code snippet to your child theme's functions.php file. This will completely disable the theme's title tag function.

2. Disabling the Theme's Title Tag via Code (Advanced)

For a more direct solution, you can remove the theme's title tag function. It is crucial to do this in a child theme to preserve your changes after theme updates.

// Remove Twenty Eleven theme title tag
function remove_theme_title_tag() {
    remove_action('wp_head', '_wp_render_title_tag', 1);
}
add_action('init', 'remove_theme_title_tag');

Warning: Only edit your child theme's functions.php file. Editing the parent theme directly is not recommended, as all changes will be lost when the theme is updated.

3. Showing or Hiding the Visible Page/Post Title

It's important to distinguish between the HTML <title> tag (for SEO and the browser tab) and the visible <h1> title on the page itself. To hide the visible page title, you can use Custom CSS. This is a visual change and does not affect the SEO title tag.

/* Hide the visible entry title on pages and posts */
.entry-title {
    display: none !important;
}

You can add this CSS through the WordPress Customizer under "Additional CSS." If your titles are already missing, check your child theme's CSS for a rule like this and remove or modify it.

Conclusion

Title issues in Twenty Eleven typically stem from a conflict between the theme and an SEO plugin or from custom CSS. Using your plugin's settings is the first and safest step. If that fails, carefully adding code to your child theme's functions.php file or Custom CSS can provide a definitive solution. Always remember to use a child theme for any code modifications to ensure your work is not overwritten.

Related Support Threads Support