Google结构化测试工具未显示我的域中的图片

时间:2018-10-11 05:44:46

标签: image schema.org google-rich-snippets

当我单击“预览”时,Google结构化测试工具不会显示来自我域的图像。但是它显示了来自Google images的任何其他链接的图像。为什么?

<main itemscope itemtype="http://schema.org/NewsArticle">
    <meta itemprop="mainEntityOfPage" content="https://isMyDomain.net/?p=one-page">
    <span itemprop="author publisher" itemscope itemtype="https://pending.schema.org/NewsMediaOrganization">
        <meta itemprop="url" content="https://isMyDomain.net">
        <meta itemprop="name" content="siteName">
        <link itemprop="sameAs" href="https://www.facebook.com/mypage" />
        <link itemprop="sameAs" href="https://twitter.com/mypage" />
        <link itemprop="sameAs" href="https://www.instagram.com/mypage" />
        <span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
            <meta itemprop="url" content="https://isMyDomain.net/img/myLogo.png">
            <meta itemprop="width" content="488">
            <meta itemprop="height" content="60">
        </span>
    </span>

    <span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
    <meta itemprop="url" content="https://isMyDomain.net/img/posts/d40N.jpg">
    <meta itemprop="width" content="634">
    <meta itemprop="height" content="342">            
    </span>

    <article>
        <header>                    
        <h1 itemprop="headline">Title</h1>  
        <time itemprop="datePublished" datetime="2018-10-11T09:45:00-03:00">
        11/10/2018 09h45</time>
        <meta itemprop="dateModified" content="2018-10-11T09:45:00-03:00"> 
        </header>

        <div itemprop="articleBody">
            <p>article body</p> 
        </div>
    </article>
</main>

测试a link from BBC news articles时,您可以看到预览按钮。

1 个答案:

答案 0 :(得分:1)

获取“预览”按钮

如果您包含指向实际AMP页面的link元素(似乎不适用于伪造/示例URL),似乎会出现“预览”按钮,例如:

<link rel="amphtml" href="https://www.bbc.com/news/amp/world-europe-4582284">

在预览中,摘要将链接到此AMP URL。

在预览中显示图像

仅当图像已被Google搜索建立索引时,预览工具才会显示图像。如果尚未建立索引,将显示一个占位符图像。参见The Google Search Preview Tool

  

丰富的卡片占位符图像和标题

     

如果您正在测试Rich Card标记,则如果我们确认或验证图像URL在我们的索引中,则可以在预览中看到您的实际图像。但是,如果我们的系统无法验证图像URL,则预览会显示一个占位符图像。即使这样,当您的富卡标记到达我们的系统时,您提供的图像仍应正确显示在实际的Google搜索结果中。

相关问题