night60000 Posted December 19, 2012 Share Posted December 19, 2012 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 19, 2012 Share Posted December 19, 2012 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 } ; Quote Link to comment Share on other sites More sharing options...
night60000 Posted December 19, 2012 Author Share Posted December 19, 2012 great that did it thank you very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.