Fix for Addthis menu appearing at page top


/ Published in: HTML
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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 -->

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.