Forums

[Plugin: ShareThis] Needs a way of placing tags/content before the button/link (2 posts)

  1. stevemagruder
    Member
    Posted 2 years ago #

    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/

  2. 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>';
    	}

Topic Closed

This topic has been closed to new replies.

About this Topic