Posted By

cyberhobo on 03/25/11


Tagged

fix menu addthis share placement


Versions (?)

Fix for Addthis menu appearing at page top


 / Published in: HTML
 

URL: http://www.addthis.com/help/default-code

If you use hidden text spans inside link buttons instead of an image tag, addthis menus seem to attach to the page top instead of the link. For some reason a strong tag used the same way works.

  1. a.addthis_button span, a.addthis_button strong { display:none; }
  2.  
  3. <!-- ADDTHIS BUTTON BEGIN -->
  4. <script type="text/javascript">
  5. var addthis_config = {
  6. pubid: "YOUR-PROFILE-ID"
  7. }
  8.  
  9. <a href="http://www.addthis.com/bookmark.php?v=250"
  10. class="addthis_button"><span>Menu appears at page top</span></a>
  11. <a href="http://www.addthis.com/bookmark.php?v=250"
  12. class="addthis_button"><strong>Menu appears next to link</strong></a>
  13.  
  14. <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
  15. <!-- ADDTHIS BUTTON END -->

Report this snippet  

You need to login to post a comment.