$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Title tag come up differently on search results|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Title tag come up differently on search results

matteradmin10PV0评论

When I Google our company's name I get a much shorter title tag then when I search for a keyword that we rank for. The correct title tag shows when I look for our company through keywords but not when I search the company name (the same home page shows up but with different title tags).

I figured the title might be echoing the WordPress name but when I changed it in the WordPress settings, forced Google to index and waited a few days the title was still wrong.

I also checked the source code and the correct title tag is displayed in there.

I use Yoast plugin and have a title tag for our home page so that is not the issue. I also looked at header.php and the only two chunks of code that I found related to the title were:

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

and

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" title="no title" charset="utf-8">

I should also add that my understanding of php/java etc is very limited.

Any help would be appreciated.

When I Google our company's name I get a much shorter title tag then when I search for a keyword that we rank for. The correct title tag shows when I look for our company through keywords but not when I search the company name (the same home page shows up but with different title tags).

I figured the title might be echoing the WordPress name but when I changed it in the WordPress settings, forced Google to index and waited a few days the title was still wrong.

I also checked the source code and the correct title tag is displayed in there.

I use Yoast plugin and have a title tag for our home page so that is not the issue. I also looked at header.php and the only two chunks of code that I found related to the title were:

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

and

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" title="no title" charset="utf-8">

I should also add that my understanding of php/java etc is very limited.

Any help would be appreciated.

Share Improve this question asked Feb 8, 2019 at 22:10 Ben GBen G 1 2
  • Google decides what title to use for the search result, and it will change depending on the user’s search query. It’s not something you can control. Google is not like a phone book where you get to choose what shows up. Google will display what it thinks is most useful to its users. For example, if the user searched for your company name, why would it show anything else? – Jacob Peattie Commented Feb 9, 2019 at 1:32
  • But when I look up my company name it only shows the company name and when I look up another keyword it shows the full title tag. I looked at many other companies, and non of their title tag is affected like this. I'm thinking there is some kind of conflict in the code etc. – Ben G Commented Feb 9, 2019 at 17:44
Add a comment  | 

1 Answer 1

Reset to default 0

I think that your title is too long. That's why, Google has truncated it. However, if it's not the case, try resubmitting your sitemap.

Also, keep in mind that Google modifies the title according to what you're looking for.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far