大网数据广告活动
网站运营与故障问答

Change my website's photo on a the mobile Google search results

· 52CE 我爱测

I have noticed that google has started to show little images next to search results on mobile devices. The first photo I have displayed on my website is my logo. Currently this is the image that is being displayed. It doesn't loo…

问题原文

原帖链接 · Juan Pablo · CC BY-SA 4.0

I have noticed that google has started to show little images next to search results on mobile devices. The first photo I have displayed on my website is my logo. Currently this is the image that is being displayed. It doesn't look good. My logo isn't square so it crops it and looks bad.

I am assuming that there is some sort of meta tag, just like the meta tag I used to tell Facebook what photo to display.

What do I put in my HTML to tell google what photo I want displayed there?

已采纳解答

原帖链接 · conanDrum · CC BY-SA 4.0

Old question but must be answered completely. It's very disappointing that it has not been answered in almost a year!

Those images come from either your:

  1. Twitter card image or
  2. Facebook opengraph image

I am not 100% from which one, but I am 100% it is from one of the two, or at least the first image that Google finds while reading your page. So keep this in mind.

To add a facebook opengraph you add these meta tags:

<meta property="fb:app_id" content=""/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="My website title"/>
<meta property="og:url" content="https://www.mywebsite.com/"/>
<meta property="og:image" content="https://www.mywebsite.com/images/special/image_og.jpg" /> 
<meta property="og:image:width" content="640" /> 
<meta property="og:image:height" content="480" />
<meta property="og:description" content="My website description"/>

Then go to check how it looks on facebook: https://developers.facebook.com/tools/debug

To add a twitter card you add these meta tags:

<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@mywebsite" />
<meta name="twitter:title" content="My website title"/>
<meta name="twitter:image" content="https://www.mywebsite.com/images/special/image_twitter.jpg"/>
<meta name="twitter:image:width" content="200"/>
<meta name="twitter:image:height" content="200"/>
<meta name="twitter:description" content="My website description"/>

Then go to check how it looks on twitter: https://cards-dev.twitter.com/validator

Now ask Google to reindex your page using the URL Inspection Tool here:

https://search.google.com/search-console

https://support.google.com/webmasters/answer/9012289

And to be complete, before you ask for a re-index by Google, add also the special favicon which will appear only on Google mobile search results!!! This is not your regular favicon. This is special. So I suggest adding another line to your page like this:

<!-- GOOGLE MOBILE SEARCH favicon 48x48 MINIMUM!!! -->
<link rel="shortcut icon" href="https://www.mywebsite.com/images/special/favicon.png">

Best to use 'https://www.mywebsite.com/images' a complete URL for all these images. These are all special images for special purposes and have special requirements. Therefore I have them in a special folder!

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-07-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。