首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pinterest: data-pin-description不覆盖title / description标签

Pinterest: data-pin-description不覆盖title / description标签
EN

Stack Overflow用户
提问于 2016-04-18 03:37:10
回答 1查看 1.3K关注 0票数 1

我们在图片中使用了data-pin-description标签,但它没有覆盖图片上的title标签,即使我们删除了图片上的标签,如果页面有描述的标记(比如og: description ),data-pin-description也会被完全忽略。我们做错了什么?我们如何才能迫使Pinterest覆盖这些描述?

例如,在下面的示例中,当访问者单击Pinit按钮时,它显示的描述是“Granite Green,热/冷散装食品储存柜”。

代码语言:javascript
复制
<img src="/images/enlarged/CMBH1826-192.jpg" data-pin-id='4107' data-pin-description='The cabinet body is a tough, one-piece seamless double-wall polyethylene shell that is easy to maintain and clean and wont dent, crack, rust, chip or break. Model: CMBHC1826LF-192 by Cambro' title="Granite Green, Hot/Cold Bulk Food Holding Cabinet">
EN

回答 1

Stack Overflow用户

发布于 2016-09-19 07:09:33

在您的按钮链接中,您可以将描述作为参数添加,例如:

代码语言:javascript
复制
<a href="http://pinterest.com/pin/create/button/?description=DescriptionText" data-pin-save="true">Pin It</a>  

来源-谢尔盖,Custom Pinterest button for custom URL (Text-Link, Image, or Both)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36681271

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档