Jump to content

Addthis buttons only to public pages


Recommended Posts

If you wanna use Addthis share buttons etc, you put JS snipplet in Globaltemplate.

But i wanna show them only to publick pages, how do i do that?

Tryed this, got error:


              {{if !$topic->container()->disable_sharelinks}}
<!-- Go to www.addthis.com/dashboard to customize your tools -->
       <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-****"></script>
<script type="text/javascript">
var addthis_config = addthis_config||{};
    addthis_config.data_track_addressbar = false;
    addthis_config.data_track_clickback = false;


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...