谷歌加在上面的例子中不能正常工作。
我用這個谷歌加。
<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