Jump to content

Resolved - trying to add share this button


night60000

Recommended Posts

Hi maybe someone as the same problem or maybe its just me im trying to install share me button i have the code and i put it where it need to be well i think i did but when i save the page my template desapire

so my question is

where do i put the code and why when i put the code my template gone ?

this is the code im useing

<!-- AddThis Button BEGIN -->

<div class="addthis_toolbox addthis_default_style ">

<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>

<a class="addthis_button_tweet"></a>

<a class="addthis_button_pinterest_pinit"></a>

<a class="addthis_counter addthis_pill_style"></a>

</div>

<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50cfc14f1d0265e2"></script>

<!-- AddThis Button END -->

and i need it in the header

https://www.extrafuel.net/store/

thank you

Danny

Link to comment
Share on other sites

Hello night60000,

Adding javascript to a Smarty template has one serious concern you need to always be aware of:

Braces will mess you up. Even worse than not using commas, apostrophes, periods, and using lower-case i.

Smarty will find all things in braces and treat them as something for itself. To stop that, add a space on both sides of every brace.

var addthis_config = { "data_track_addressbar":true } ;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...