sharethis

How do I trigger a sharethis button regen?

本小妞迷上赌 提交于 2020-01-14 13:49:28
问题 I'm changing some of the properties of the sharethis button dynamically, and am looking to cause it to regen. How do I do that? 回答1: depends on the customization you want to do, but if you're just dynamically adding a sharethis button, call stButtons.locateElements(); That will re-run the init code an the sharethis js will do it's magic again. 来源: https://stackoverflow.com/questions/5036133/how-do-i-trigger-a-sharethis-button-regen

Share buttons share homepage instead of actual page

本秂侑毒 提交于 2019-12-24 23:23:57
问题 For a client's blog I added social share buttons at the bottom each blogpage: http://www.pano-solutions.be/5-tips-voor-een-great-place-to-work.php I use the sharethis plugin for this. However, when I click on any of the sharebuttons, It will share the mainpage of the website instead of the blogpage. Not very usefull. I searched the FAQ on sharethis, but didn't find any usefull help there. Someone knows how I can fix this or know any working alternatives or good practises on how to do this

Multiple ShareThis Implementations on a Page

喜欢而已 提交于 2019-12-23 19:59:06
问题 I have a page with different pricing plans and I want each plan column to have it's own ShareThis information. Here's the markup for email only (I also have Facebook and Twitter): <span class="st_email" st_title="column 1" st_url="http://domain/col1" displayText="" st_summary="c1 text"></span> <span class="st_email" st_title="column 2" st_url="http://domain/col2" displayText="" st_summary="c1 text"></span> <span class="st_email" st_title="column 3" st_url="http://domain/col3" displayText=""

ShareThis plugin not working in FancyBox title

て烟熏妆下的殇ゞ 提交于 2019-12-17 14:24:15
问题 I am rather new to all things JavaScript so please bear with me :) I am trying to add ShareThis plugin to the title of FancyBox so that users can share a certain picture. It shows up nicely but nothing happens when I click on "share" buttons. Same plugin works on a regular page just fine, so I am guessing it's conflicting scripts (plugin script inside the FancyBox script). Unfortunately, I don't know JavaScript well enough to solve it on my own, but I really need this to work... If anybody

ShareThis plugin not working in FancyBox title

♀尐吖头ヾ 提交于 2019-12-17 14:20:00
问题 I am rather new to all things JavaScript so please bear with me :) I am trying to add ShareThis plugin to the title of FancyBox so that users can share a certain picture. It shows up nicely but nothing happens when I click on "share" buttons. Same plugin works on a regular page just fine, so I am guessing it's conflicting scripts (plugin script inside the FancyBox script). Unfortunately, I don't know JavaScript well enough to solve it on my own, but I really need this to work... If anybody

Is is possible to use ShareThis in a PhoneGap app?

梦想的初衷 提交于 2019-12-12 20:25:31
问题 I've checked the plugin repository on github, and there does not appear to be a plugin already written for ShareThis. I think this means I would have to install the mobile version of ShareThis written in Objective-C. Is there a way to make that work? 回答1: You are correct in that you would need to write a plugin to interface between the ShareThis iOS API and PhoneGap. Looks like a pretty straight forward API... shouldn't bee too hard. http://wiki.phonegap.com/w/page/36753496/How%20to%20Create

Twitter's Bootstrap 3 with ShareThis widget

邮差的信 提交于 2019-12-10 12:46:12
问题 bootstrap3 looks like there is a compatibility issue with the sharethis app widgets... images looked cropped due to the use of { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } see demo http://gurroladesign.com/bootstrap3/ compatibily issue not existant on previous version of bootstrap http://gurroladesign.com/bootstrap/starter-template.html have not been able to solve? any help greatly appreciated 回答1: Wrap your code (span tags) in a container and reset

Can I use a ShareThis/AddThis Button if my site's navigation relies on Hash tags in the url?

半城伤御伤魂 提交于 2019-12-08 07:04:24
问题 I want to embed a ShareThis/AddThis button on my site but the site's navigation relies on Hash tags in the url. Each page is assigned a unique hash value (ie, http://domain.com/index.php#products). Changing the navigation/page design isn't an option. Will these service preserve the hash value (both embed JS on the page)? If they don't, what are some alternative solutions? 回答1: Just replace the # with %23 (the URL encoded version of #) and you'll be fine. ;) I like to use the "remote" version

ShareThis buttons not clickable on HTTPS website

时光怂恿深爱的人放手 提交于 2019-12-07 05:42:08
问题 I have added "share this" buttons to my secure site and now they produce an error when clicked. Errors are mentioned below. Has anyone had this problem before? Blocked loading mixed active content "http://w.sharethis.com/button/buttons.js" ReferenceError: stLight is not defined Loading mixed (insecure) display content on a secure page "http://w.sharethis.com/images/facebook_32.png" 回答1: Basically if a page is loaded over HTTPS then every resource it uses should also be loaded over HTTPS. It's

Can I use a ShareThis/AddThis Button if my site's navigation relies on Hash tags in the url?

若如初见. 提交于 2019-12-06 15:28:46
I want to embed a ShareThis/AddThis button on my site but the site's navigation relies on Hash tags in the url. Each page is assigned a unique hash value (ie, http://domain.com/index.php#products ). Changing the navigation/page design isn't an option. Will these service preserve the hash value (both embed JS on the page)? If they don't, what are some alternative solutions? Just replace the # with %23 (the URL encoded version of #) and you'll be fine. ;) I like to use the "remote" version of addthis : http://www.addthis.com/bookmark.php?url=your_url_here%23hash_tag_here The javascript button's