Troubleshooting: Double Title When Sharing Website

Last Updated: Jun 27, 2017
Issue: When linking to/sharing your page on social media, if you run into an issue where the title of your page looks something like this:

Wordpress Website TitleWordpress Website Title | Project

this article will show you how to fix it.

1. Within your Wordpress Dashboard, navigate to Appearance > Editor.
(Note: Some web hosting providers have this disabled, so you may need to enable it when you get to the page.)

2. There will be a list on the right side of the page with all of the theme files, look for Theme Header (header.php), click to open it.

3. Using your browser's find tool (Ctrl/Cmd + F), search for <!-- Facebook -->, under that line, you'll see a line of code either identical or similar to this:

<meta property="og:title" content="<?php bloginfo('name'); ?><?php wp_title('&rsaquo;'); ?>" />

Remove the part that says <?php bloginfo('name'); ?>.

4. Click Update File.

5. Use the Facebook Sharing Debugger to make sure it worked. You'll need to be logged into a Facebook account to use it.

If you feel uncomfortable editing your theme files in this way, you can email and we can do it for you.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found