Adding javascript to .tpl file

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Adding javascript to .tpl file

Postby Joexwilly » Sat Aug 01, 2015 4:07 am

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>
HELPING TO MAKE PIVOTX BETTER. I love Pivotx
If you need a customized theme, web or mobile, just mail or PM me
Joexwilly
 
Posts: 2
Joined: Fri Jul 31, 2015 8:53 am

Re: Adding javascript to .tpl file

Postby hansfn » Sun Aug 02, 2015 7:49 pm

Doesn't

Code: Select all
[[literal]]

Your code

[[/literal]]

work?
hansfn
Developer
 
Posts: 3280
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Adding javascript to .tpl file

Postby Joexwilly » Tue Aug 04, 2015 3:58 am

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
HELPING TO MAKE PIVOTX BETTER. I love Pivotx
If you need a customized theme, web or mobile, just mail or PM me
Joexwilly
 
Posts: 2
Joined: Fri Jul 31, 2015 8:53 am


Return to 2.x Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron