I'm working on a basic HTML site for photo galleries and I want to add AddThis buttons but they won't show up.
I am using this code:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_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="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-52adbb04690060bb"></script>
<!-- AddThis Button END -->
But nothing shows up on the webpage. At times I get text links instead of buttons. I have tried the troubleshooting steps that is suggested on their site but it's not helping.
Does anyone know what's wrong?
I had the same problem. I was viewing the html file directly from the filesystem at
file:///home/emmanuel/html/new.html
and not through a web server. Putting the html file in an apache server directory (/var/www in ubuntu) and viewing it athttp://127.0.0.1/new.html
solved the issue for me. Hope this helps.new.html