I need a way to specify...
<br clear="both"/>
before the ShareThis button/text. The only way I could see to do this was by editing the sharethis.php code, like follows:
if(!empty($widget)){
$sharethis = '<br clear="both"/><script type="text/javascript">SHARETHIS.addEntry({ title: "'.str_replace('"', '\"', strip_tags(get_the_title())).'", url: "'.get_permalink($post->ID).'" });</script>';
}
Please add an option for specifying code/content before the display of the ShareThis button/text. Thanks!
http://wordpress.org/extend/plugins/share-this/
Ron Fredericks
Member
Posted 2 years ago #
Hi Steve:
Thanks for sharing this little code mod. I too had a problem. The iframe version of ShareThis was showing up under my flash swf images. The popup version would not work for me either.
So I used your code example to create a div block around my ShareThis script - which forced the ShareThis iframe to avoid my swf image:
if(!empty($widget)){ // <div>...</div> added to $sharethis string, RDF
$sharethis = '<div><script type="text/javascript">SHARETHIS.addEntry({ title: "'.str_replace('"', '\"', strip_tags(get_the_title())).'", url: "'.get_permalink($post->ID).'" });</script></div>';
}