matt6805
05-06-2009, 01:39 PM
I've been trying to register with the Sharethis forums to post this question, but it's not working.
What I'm trying to do is two things:
1) I'm trying to skin the Sharethis Widget itself. I can't find anything on the forums that says you can do this, so I'm starting to think you can't. I have the following code embedding a custom button on my blog:
<script language="javascript" type="text/javascript">
//Sharethis Button
//Create your sharelet with desired properties and set button element to false
var object = SHARETHIS.addEntry({
title:'<?php the_title(); ?>'
},
{button:false,offsetLeft: -5,offsetTop: -4});
//Output your customized button
document.write('<div id="share" class="post_menu_share"><a href="javascript:void(0);" title="share" class="button_share">share</a></div>');
//Tie customized button to ShareThis button functionality.
var element = document.getElementById("share");
object.attachButton(element);
</script>
This code works and puts a custom sharethis button on the site. But the issue is, I want to skin the module that opens in and Iframe. I can't figure out a way to do this. I can't override the CSS because the module is loading into an iframe. Even if I choose the popup window feature, it's still being called from an external server where I can't overwrite the CSS.
2) I want to limit the number of share services to 6. I used the Sharethis website tool where I can add/remove the service I want to share each story with. I can't seem to remove the other services from the scrolling arrows at the bottom. Even after I remove all the services and update the code, the services are still there when I view the site with the new code.
Does anyone here have experience with using the Sharethis technology? Any advice would be great. Thanks!
Regards,
Matt
What I'm trying to do is two things:
1) I'm trying to skin the Sharethis Widget itself. I can't find anything on the forums that says you can do this, so I'm starting to think you can't. I have the following code embedding a custom button on my blog:
<script language="javascript" type="text/javascript">
//Sharethis Button
//Create your sharelet with desired properties and set button element to false
var object = SHARETHIS.addEntry({
title:'<?php the_title(); ?>'
},
{button:false,offsetLeft: -5,offsetTop: -4});
//Output your customized button
document.write('<div id="share" class="post_menu_share"><a href="javascript:void(0);" title="share" class="button_share">share</a></div>');
//Tie customized button to ShareThis button functionality.
var element = document.getElementById("share");
object.attachButton(element);
</script>
This code works and puts a custom sharethis button on the site. But the issue is, I want to skin the module that opens in and Iframe. I can't figure out a way to do this. I can't override the CSS because the module is loading into an iframe. Even if I choose the popup window feature, it's still being called from an external server where I can't overwrite the CSS.
2) I want to limit the number of share services to 6. I used the Sharethis website tool where I can add/remove the service I want to share each story with. I can't seem to remove the other services from the scrolling arrows at the bottom. Even after I remove all the services and update the code, the services are still there when I view the site with the new code.
Does anyone here have experience with using the Sharethis technology? Any advice would be great. Thanks!
Regards,
Matt