Jacob Goods
asked 6 years ago

Hey designwall team, 
First, great job on the themes, particularly the timeline Pro – it’s sleek, it’s smooth, near perfect. 
We are currently in the middle of developing the site, http://www.yakupin.com, and we can’t seem to get the AddThis buttons to show on the Home page. Ideally, we would want the share buttons to show in the side bar via the AddThis widget, but it doesn’t work. Alternatively, we tried selecting the “Display on Homepage” option so it floats on top, but that didn’t work either. 
Please advise. 
Thanks!

1 Answers
DominicStaff
answered 6 years ago

Hello Jacob !
To display the AddThis buttons on the Homepage, please log in to dashboard > Customize > Custom Code, then add the following code:
– Header Code (Meta tags, CSS, etc …)

  <style>
.addthis_toolbox {
    display: block;
}
</style>

– Footer Code (Analytics, etc …)

  <script type="text/javascript">
        $(document).ajaxComplete(function(){
            console.log("All AJAX requests completed");

            if (window.addthis) {
                window.addthis.toolbox(".addthis_toolbox addthis_default_style");
                console.log("AddThis rendered")

            };
        });
        var tbx = document.getElementById("toolbox"),
            svcs = {email: 'Email', print: 'Print', facebook: 'Facebook', expanded: 'More'};

        for (var s in svcs) {
            tbx.innerHTML += '<a class="addthis_button_'+s+'">'+svcs[s]+'</a>';
        };
    </script>

Hope this helps !

Jacob Goods
replied 6 years ago

Thanks mate! Great help.

Powered by DW Question & Answer Pro