Custom URL with event handling
-
Hi. I have a site where it only makes sense to share my homepage. I barely tweaked your example that shows you how to modify the share event and it works great:
a2a_config.callbacks.push({ share: function(share_data) { // The shared URL var old_url = share_data.url; // Initialize new shared URL var new_url = 'http://www.mysite.com'; // Modify the share by returning an object // with a "url" property containing the new URL if (new_url != old_url) { return { url: new_url }; } } });However I think it pulls the share count before this function is invoked, because the number shown is the number it would have been had I not done this. Is there any way to work around this? THANKS for this great free plugin!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Custom URL with event handling’ is closed to new replies.