• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

BeginWP

  • Home
  • Plugins
  • Themes
  • Tutorials
  • Problems & Fixes
You are here: Home » WordPress Tutorials » Solve Double Title Problem in WordPress When You Install SEO Plugin

Solve Double Title Problem in WordPress When You Install SEO Plugin

January 14, 2013 by Saqib Leave a Comment

FacebookTweetGoogle+

After installing a SEO plugin, there are chances that your title attribute is displaying twice. You won’t recognize it until and unless you check it in the source or in the browser’s tab. For example, in the below screenshot you can see how bad the title looks in Google’s search result page.

double-title

This problem mostly appears after installing WordPress SEO by Yoast, All in One SEO Pack or any other SEO plugin. Fortunately, this problem is very easy to fix with the help of a simple tweak in your theme’s header.php file. Let’s take a closer look at this.

There are two ways to open your header.php file. Either use your WordPress admin to navigate to Themes > Editor and click on “header” from the right side or open your cPanel/FTP program and navigate to your theme’s directory and download this file.

Use your preferred code editor like Notepad++ or any other and search for “title” attribute and replace it with:

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

For example, in my theme, I will replace the below code (but this code can be different in your theme):

<title><?php if (is_home() || is_front_page()) { echo bloginfo('name'); } else { echo wp_title(''); } ?></title>

With:

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

Save changes, upload and replace your header.php file in your server.

That’s it. Now check out your front-end again and duplicate title problem should now be marked as solved.

You may also like to read:

White Label (Rebrand) your WordPress Installation for Clients
Use IFTTT And Dropbox To Schedule Simple Text Backup Of Blog Po...
The Proper Way to Add Custom CSS to WordPress

Filed Under: WordPress Tutorials

Reader Interactions

siteground web hosting

Leave a Comment Cancel reply

Primary Sidebar

STAY CONNECTED

  • Email
  • Facebook
  • RSS
  • Twitter

SUBSCRIBE

Get all WordPress tutorials, news, theme and plugin reviews right in your Inbox.

Recent Posts

  • How to Cleanup Database by Removing Old Plugin Tables
  • How To Install SSL On WordPress – Detailed Guide
  • How to Bulk Import Users to WordPress
  • How to Install WordPress Child theme – Step-by-Step
  • How to Backup WordPress Database – Manual & Plugin Method
advt advt

siteground Bloom plugin

Footer

About BEGINWP

Freshly baked stuff always tastes good, right? That's why we at BeginWP focus on cooking the finest WordPress tutorials, along with plugins, themes, tips and tricks.

This site teaches how users can get the most out of this amazing CMS. We ❤ WordPress.

Pages

  • About
  • Subscribe
  • Privacy Policy
  • Disclosure
  • Contact

© Copyright 2018 BeginWP · All Rights Reserved · Rocking by WordPress, of course.