Page 1 of 1

Adding javascript to .tpl file

PostPosted: Sat Aug 01, 2015 4:07 am
by Joexwilly
Hi, am new to pivotx and so far, i love it. Well, i was shocked when i noticed that there's no advertisement extension. I tried posting the code directly in the _sub_about.tpl file but it does not work. i have tried {literal} {/literal} still nothing, please help, this is the code
Code: Select all
<script type="text/javascript">
var var1 = "300";
var var2 = "250";
var var3 = "300x250";
var var4 = "14590";
var var5 = "fc56459a18776e2a100854c16a1fd78b";
</script><script type="text/javascript" src="//cdn.adshexa.com/show_ads.php"></script>

Re: Adding javascript to .tpl file

PostPosted: Sun Aug 02, 2015 7:49 pm
by hansfn
Doesn't

Code: Select all
[[literal]]

Your code

[[/literal]]

work?

Re: Adding javascript to .tpl file

PostPosted: Tue Aug 04, 2015 3:58 am
by Joexwilly
thanks, its working with now, i thought it was {literal} code {/literal} but your reply works at my site http://www.xtrahola.com thanks alot