Jump to:

23355 Posts in 17838 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Addthis button hover functionality

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1518 Views
  • ramshackle
    Avatar
    Community Member
    22 Posts

    Addthis button hover functionality Link to this post

    Hi there,

    Running a site in 2.3.7 and trying to put the 'addthis' button (www.addthis.com) on to the page template - can see the button fine and the hover works fine in IE8 (floatingwindow appears on hover with the options) but hover doesnt work in firefox and chrome latest versions (floating window doesnt appear). I'm guessing it's a javascript issue but I'm no developer.

    Similar issue with the 'sharethis' button (www.sharethis.com)- button graphic doesnt even appear in firefox/chrome & all works fine in IE8.

    Cheers for any advice

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Addthis button hover functionality Link to this post

    Try to remove the <?xml version="1.0" encoding="UTF-8"?> header from your template(s). Most likely these scripts use the "document.write" method which doesn't work with an XML document.

  • ramshackle
    Avatar
    Community Member
    22 Posts

    Re: Addthis button hover functionality Link to this post

    Thanks Banal,

    That worked, cheers!

    Would removing that line have any other effect?

    Thanks

    1518 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.