You must be wondering why your website title is appearing twice every time you are creating any post or a page. Don’t worry. This is normal. This may have many reasons but what I can figure out is whenever you install a plugin or a theme onto your WordPress website, you need to do some tweaking which is very easy. You basically have to remove add_filter which I will talk later in this post.
You might have just started blogging on WordPress framework and for search engine optimization(SEO) , there are many plugins but the common ones are ‘WordPress SEO by Yoast’ and ‘All in One SEO’. Whichever plugin or a theme you may choose, a newbie finds it difficult to get rid from this irritating problem.
How to fix your website title on every page/post?
Just follow what I say and you’ll get over with the problem in a minute. I will give you an example from my website title, i.e. Digital Via Me. Here we go,
Like you can see from above screenshot, that the site name is appearing twice in a snippet. When you go to a site, you’ll see the exact same meta title tag and of every post you’ll see double site title. So , now we will look into how can you change this and why it should only appear once.
- In your WordPress editor, Appearance –>Editor –> Header (header.php)
- Ctrl+f and find wp_title and whatever you find on that, just replace it to –
<title><?php wp_title(); ?></title>
- Update the file
- In your editor section, Click on Theme Functions (functions.php)
- Ctrl+f and find add_filter
- You’ll get something like this- add_filter(‘wp_title’, ‘some_function_name’ );
- Remove this line and update the file
Follow these 2 easy steps, and your site title will only appear once. This makes your blog/website neat and clean. After all, its all about improving your blog.
Feel free to ask me anything if you find any problem, I’ll be happy to help you.