By SDM-MINK on
Using an override theme_addthis_button function & button displaying at bottom of node. See below coding placed in template.php. How do I change so that when you click on the "addthis button" it displays the node url & title? Currently displays the site slogan and site address (www.site.com). As an aside, the "addthis button" is not displaying in the teaser. Any fixes?
function endless_news_addthis_button($node, $teaser) {
$button = '
nid, array('absolute' => 1) ).'" addthis:title="'.$node->title.'" href="http://addthis.com/bookmark.php?v=250&username=ifvnews" class="addthis_button_compact">Share
';
return $button;
}
Comments
I would like to know how to
I would like to know how to achieve this via a snippit in my template.php, rather than using the addthis module. Right now, if I manually add the addthis code to the teaser, It only links to the page title. I want it to link to the actual post it is embedded in.