• I really like the Share-This bookmark tool. But I found that when the automatic placement of the ShareThis icon was just below my web page flash video player, then the ShareThis box would load under my flash video so as not be accessable. I would have to refresh the page to clear the bad format and the ShareThis feature would not be usable.

    To fix this problem I added paragraph tags around the suggested script from the plugin settings. For example, my default setting might look like this:

    <script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=dadada&type=wordpress"></script>

    But when I surround the script with a paragraph tag, the iframe then pops up OVER my flash video – and works just fine. The updated script looks like this:

    <p>
    <script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=dadada&type=wordpress"></script></p>

    I hope this helps others who do flash video from their wordpress blog as well.

    Ron Fredericks
    LectureMaker.com

    http://wordpress.org/extend/plugins/share-this/

Viewing 1 replies (of 1 total)
  • Thread Starter Ron Fredericks

    (@ronf)

    I discovered that my previous example of adding a paragraph tag around my ShareThis bookmark had a bad side effect… A new ShareThis button would show up above my page header making for a dumb looking blog.

    I did come up with an improved way to solve this problem so I am sharing it here. Within the sharethis.php plugin file, make a simple modification like this:

    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>';
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: ShareThis] Sharethis iframe badly formated below flash video’ is closed to new replies.