Jump to content

Addthis buttons only to public pages


Owdy
 Share

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;
</script>
{{endif}}

 

Edited by Owdy
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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