How do I trigger a sharethis button regen?
-
15-11-2019 - |
Question
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?
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow