AddThis integration per page (ideal for blog posts)

Posted by BIOS 45 months ago

Maybe I just can't google properly, but I had a hard time finding information on how to get sharing buttons hooked up per URL. I couldn't get it working with ShareThis, so I decided to go with AddThis. Here is how I got it to work:

            <div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url="$blogpost['id']" addthis:title="$blogpost['title']">
            <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>