AD Code Placement Question

GK User
Thu Jan 12, 2012 5:36 am
Hello,

I've been instructed to place the following script into my Sporter theme. Can someone help direct me on where I need to place this?

Instructions for installing Ad Code:
1) Within the <head> of each page or template place this code fragment. Your ads will not work without this piece of code.

<SCRIPT>
var a = Math.floor(Math.random()*999999999+1)
var random_number = a;
</SCRIPT>

Thank you.
User avatar
Junior Boarder

GK User
Thu Jan 12, 2012 8:32 am
<head> section you can find in template/layouts/blocks/head.php and there just above </head> tag you can paste this code.
User avatar
Platinum Boarder

GK User
Thu Jan 12, 2012 8:39 am
If you don't want to edit the template files you can add scripts etc. to the head using this plugin EasyHeader using the plugin also means that the code can be added to other templates without editing the files.
User avatar
Expert Boarder

GK User
Thu Jan 12, 2012 3:06 pm
bkrztuk wrote:<head> section you can find in template/layouts/blocks/head.php and there just above </head> tag you can paste this code.


Thanks for response. There is no "</head>" tag within this file. Any other suggestions?
User avatar
Junior Boarder

Konrad M
Thu Jan 12, 2012 3:56 pm
In this template you will find <head> section in template/layouts/default.php
User avatar

GK User
Fri Jan 13, 2012 3:10 am
Konrad M wrote:In this template you will find <head> section in template/layouts/default.php


That did it! Thank you sir!
User avatar
Junior Boarder

Konrad M
Fri Jan 13, 2012 10:11 am
Great :)
User avatar


cron