2012-09-28 15 views
6

के साथ एक कस्टम यूआरएल का उपयोग करें, मैं जानना चाहता हूं कि ShareThis सोशल शेयर प्लगइन के साथ एक कस्टम यूआरएल का उपयोग कैसे करें। उदाहरण के लिए मेरे पास index.php पेज taht पर एक पोस्ट सारांश है जो my-post.php से जुड़ा हुआ है, इसलिए मैं अपने इंडेक्स पेज से my-post.php साझा करने के लिए क्या करना चाहता हूं।ShareThis सोशल शेयर प्लगइन

<span class='st_facebook_hcount' displayText='Facebook'></span> 
<span class='st_twitter_hcount' displayText='Tweet'></span> 
<span class='st_googleplus_hcount' displayText='Google +'></span> 
<span class='st_pinterest_hcount' displayText='Pinterest'></span> 

जे एस:

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script> 
<script type="text/javascript">stLight.options({publisher: "ur-448a73fe-e6c1-f7a5-f0a5-3912c860fc9e"});</script> 
+0

ShareThis के लिए एक अच्छा प्रलेखन है: http://support.sharethis.com/ यह अपने आप कोशिश करो और वापस आने के लिए जब आप असफल! – yckart

उत्तर

13

आप कर सकते हैं

यहाँ sharethis.com

बटन से कोड है एक st_url संपत्ति संलग्न करें y आपके प्रत्येक स्पैन टैग से जो साझा किए गए यूआरएल को नियंत्रित करेगा।

<span class='st_facebook_hcount' st_url='http://my.custom.com/url' displayText='Facebook'></span> 

स्रोत: https://support.sharethis.com/hc/en-us/articles/218441477-How-to-Customize-which-URL-Text-and-IMG-to-Share

+0

आपने गलत लिंक पोस्ट किया है, मुझे लगता है। –

+0

@ जैन टूरन ... ओह! लिंक अपडेट किया गया है। – Mike

7

बस इस तरह st_url विशेषता का उपयोग:

<span class="st_sharethis" st_url="http://www.yoursite.com/innerpage.php" st_title="inner page title" displayText="ShareThis"></span> 
संबंधित मुद्दे