【问题标题】:Customise the image a Google+ Share button displays upon sharing自定义 Google+ 共享按钮在共享时显示的图像
【发布时间】:2013-08-25 10:17:38
【问题描述】:

我找到了这个链接: Adding a Google Plus (one or share) link to an email newsletter

太棒了,它帮助我为我的 HTML 电子邮件广告系列制作了一个 Google+ 按钮。我正在使用 Mailchimp 并对其进行了编辑:

<a href="https://plus.google.com/share?url=*|RSSITEM:URL|*">
<img src="http://mywebsite.co.uk/images/googleplus.jpg">
</a>

所以现在它有一个自定义的图像,也可以在我的 RSS 电子邮件活动中使用。 Mailchimp 支持人员不知道这是可能的,这让我很高兴。

但是,我想要实现的是能够在用户单击时选择默认共享的图像。有谁知道这是否可能?

我希望我的解决方案对某人有所帮助:)

【问题讨论】:

    标签: google-plus mailchimp


    【解决方案1】:

    共享中显示的图像由您共享的页面上的 Schema.org 标记决定。具体来说,您需要将itemprop="image" 设置为指向您要共享的图像。

    <body itemscope itemtype="http://schema.org/Product">
      <h1 itemprop="name">Shiny Trinket</h1>
      <img itemprop="image" src="{image-url}" />
      <p itemprop="description">Shiny trinkets are shiny.</p>
    </body>
    

    请务必注意,这是您页面的标记,因此共享中显示的同一图像将在其他 sn-p 工具中代表您的页面。

    您可以在https://developers.google.com/+/web/snippet/ 了解其工作原理,并查看其他标记选项。

    【讨论】:

      【解决方案2】:

      共享者将此图像用作默认图像,但也会显示其他图像(可以通过悬停箭头选择它们)。有没有办法禁用其他图像,导航图像等?

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-07-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多