谷歌加在上面的例子中不能正常工作。
我用这个谷歌加。
<div id="custom-google-button">
<a href="https://plus.google.com/share?&hl=en&url=YOUR_URL_to_share" target="_blank">google+</a>
</div>
在WordPress:
<a href="https://plus.google.com/share?hl=en&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank" title="Plus one this page on Google">google+</a>
LinkedIn:
<div id="custom-linkedin-button">
<a href="http://www.linkedin.com/shareArticle?mini=true&url=YOUR_URL_to_share" target="_blank">Linkedin</a>
</div>
在WordPress:
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php if(is_home()){echo home_url();}else{the_permalink();} ?>" target="_blank">Linkedin</a>
来源:
请问Facebook网址采取任何更多的PARAMS?或者它只是'你'? – henrywright
@henrywright看来Facebook现在更喜欢不同的语法;答案中的URL有效,但这里有更多关于如何使用共享对话框的信息:https://developers.facebook.com/docs/sharing/reference/share-dialog#redirect关于遗留网址的选项,看到这篇文章:http://ar.zu.my/how-to-really-customize-the-deprecated-facebook-sharer-dot-php/ –
感谢您的跟进。我会看看链接... – henrywright