July 22, 2017 at 9:01 pm #10737
I have an issue with “title” tag. All of my pages have double title tags and the first one is empty. So, the pages shows up on search and such without proper titles. This started after I updated to the new version of Graphene Theme. But I am not sure if it is the theme or a plug-in.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
First title tag****
<link rel="pingback" href="http://sanuja.com/blog/xmlrpc.php" />
<title>****CORRECT TITLE APPEARS HERE****</title>
Example link: http://sanuja.com/blog/exams/glgy201
This issue is across all pages and posts.
I think this post also talk about a similar issue? May be? https://forum.graphene-theme.com/graphene-support/article-name-lost-by-sharing-facebookJuly 24, 2017 at 9:55 am #46671Syahir HakimKeymaster
Couple of things to check:
1) Are you using the latest version of WordPress?
2) Are you using any plugin that modifies the title tag, e.g. WP SEO?July 24, 2017 at 11:35 pm #46672
Thank you for the reply. I don’t have any SEO plugins. I deactivated WP Super Cache and checked one pulgin at a time. I also checked Graphene child headder and I don’t see anything wrong.
Is there way to check which plugin I have updated last?
I have no idea what’s going on and I have Version 4.8 (latest WP I think).July 25, 2017 at 8:47 pm #46673Syahir HakimKeymasterQuote:I also checked Graphene child headder and I don’t see anything wrong.
Ah..so you have
header.phpfile in your child theme. In that case, edit that file and remove the `<title></title>’ portion, as WordPress adds the title tag dynamically now.July 26, 2017 at 3:48 am #46674Quote:I also checked Graphene child headder and I don’t see anything wrong.
Ah..so you have header.php file in your child theme. In that case, edit that file and remove the `<title></title>’ portion, as WordPress adds the title tag dynamically now.
THANK YOU so much. It worked! I deleted the
<title><?php wp_title( '' ); ?></title>
from the header.php file in the Child Theme. 🙂
You must be logged in to reply to this topic.