链接到“固定"在不生成按钮的情况下在 Pinterest 上 [英] Link to "pin it" on pinterest without generating a button
问题描述
我有一个页面,其中包含数十或数百个帖子,每个帖子都带有社交按钮.我只是无法为每个 url 生成所有按钮:它太慢了(facebook、g+、twitter、pinterest...数百个链接).因此,我没有使用即时生成的 facebook 分享按钮,而是使用一个简单的 img 指向
I have a page with tens or hundreds of posts, each one with social buttons. I just can't generate all the buttons for each url: it is too slow (facebook, g+, twitter, pinterest... for hundreds of links). So, instead of the facebook share button to be generated on the fly, I use a simple img pointing to
https://www.facebook.com/sharer.php?u=${url_of_current_post}&t=
当用户点击它时,会打开一个弹出窗口,其中包含 facebook 生成的内容.
When the user clicks on it, a popup window opens with content generated by facebook.
我怎样才能为 Pinterest 做到这一点?我只找到生成按钮的代码,但如果可能的话,我想完全避免使用 js.有没有类似下面的内容?
How can I do it for Pinterest? I only find around code to generate the button, but I would like to avoid js at all if possible. Is there something like the following?
http://pinterest.com/pinthis?url=${url_of_current_post}
请不要试图让我使用js按钮,谢谢.
Please do not try to make me use the js button, thanks.
推荐答案
如果你想创建一个简单的超链接而不是 pin it 按钮,
If you want to create a simple hyperlink instead of the pin it button,
改变这个:
http://pinterest.com/pin/create/button/?url=
为此:
http://pinterest.com/pin/create/link/?url=
因此,一个完整的网址可能如下所示:
So, a complete URL might simply look like this:
<a href="//pinterest.com/pin/create/link/?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F&media=http%3A%2F%2Ffarm8.staticflickr.com%2F7027%2F6851755809_df5b2051c9_z.jpg&description=Next%20stop%3A%20Pinterest">Pin it</a>
这篇关于链接到“固定"在不生成按钮的情况下在 Pinterest 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!