Buttons don't display, only text

sdavidhicks May 10, 2012 12:43PM EDT

Hi, I guess this is a frequent question, sorry. I installed the code to my site, iwsmoney.com, but it only displays the text links, no buttons. Here is the code I grabbed and tried to use:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fabe4531b2f4e03"></script>
<!-- AddThis Button END -->

By entering an <img src= line, I can show at least some of the buttons, but I don't think this is the way it should be done. Thanks for any help.

David Hicks

Up 0 Rated Down
Paul (AddThis Happiness Specialist) May 10, 2012 05:09PM EDT
You're probably viewing your pages by opening them as local files rather than loading them from a web server. So instead of the URL of the page in your browser starting with http:// it starts with C:\ or file://

Here's what the AddThis buttons look like when viewed via http:// - http://i.imgur.com/IDGUD.png

And here's the same file viewed using file:// - http://i.imgur.com/gpCco.png

We currently are using protocol-free URLs in our code - ones that start with // instead of http:// or https:// - to make sure our SSL implementations are cross compatible without extra work. However, if you're loading the test page with the file:// protocol it causes the CSS and other JavaScript files not to load, since it's looking for them on your local machine rather than our web servers.

I've submitted a ticket to our developers to fix this for people previewing pages using their file system rather than a web server, but until they can get that implemented you should either understand that the buttons won't show up if using the file:// protocol or use a web server in order to test how your sites display in browsers.

This question is closed to new answers.

Still need help?


General Topics

 

Developers