Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Addthis button hover functionality


Reply

3 Posts   1545 Views

Avatar
ramshackle

31 May 2010 at 8:12pm Community Member, 22 Posts

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

Avatar
banal

31 May 2010 at 11:01pm Community Member, 901 Posts

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.

Avatar
ramshackle

3 June 2010 at 3:00pm Community Member, 22 Posts

Thanks Banal,

That worked, cheers!

Would removing that line have any other effect?

Thanks