New to addthis

wypozyczauto.pl Feb 21, 2012 12:16PM EST

Hello

I have generated a 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" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f43bd3f0be94817"></script>
<!-- AddThis Button END -->

that works fine on my web page

how do I add this to that code??

var addthis_config = {
services_compact: 'email, facebook, twitter, more',
services_exclude: 'print'
}



I can not find simple example of how to add VAR-s to code??

I have tried many different ways without luck.

Please Help

Best

Michael

3 Community Answers

Paul Feb 21, 2012 03:23PM EST

Those vars are just JavaScript variables. Put them between <script> tags like you would any other JavaScript:

<script type="text/javascript">
var addthis_config = {
services_compact: 'email, facebook, twitter, more',
services_exclude: 'print'
}
</script>

View in conversation


Up 0 Rated Down
Paul (AddThis Happiness Specialist) Best Answer Feb 21, 2012 03:23PM EST
Those vars are just JavaScript variables. Put them between <script> tags like you would any other JavaScript:

<script type="text/javascript">
var addthis_config = {
services_compact: 'email, facebook, twitter, more',
services_exclude: 'print'
}
</script>
Up 0 Rated Down
informer9 Feb 22, 2012 05:17AM EST
Ok, thanks.

What is the maximum number of services_compact ??

I have added:

services_compact: 'email, facebook, naszaklasa, favorites, print, google, grono, wykop, twitter, delicious, digg, linkedin, stumbleupon, live, myspace, netlog, wordpress, orkut, mailto, dashboard, reddit, gmail, facebook_like, google_plusone, googletranslate, more',

and only 11 + more is showing up

Is there a way to show ALL my favorite services in compact view and then add any available services under more??

Best

Michael

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Feb 22, 2012 02:56PM EST
The maximum number is 12, including the more button.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Reference