Jump to content

Adding Adsense to a site document


Guest mook25

Recommended Posts

Guest mook25

I'm trying to post the following script into a site document so that it shows as a google ad but it keeps appearing as just the code text. How do i get it to appear as the google ad? I have tried going into sourcewithin the editor and adding html tags but it still appears as the code text.

<script type="text/javascript"><!--

google_ad_client = "pub-1114502946230723";

google_ad_width = 728;

google_ad_height = 90;

google_ad_format = "728x90_as";

google_ad_type = "text_image";

google_ad_channel ="";

//--></script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>

Thanks

Link to comment
Share on other sites

Guest garysmith

You will need to put the javascript into the template file for the page in which you want it to appear.

Say you want it in the index page you will need to put it in the /skins/YOURSKIN/styleTemplates/content/index.tpl

You might need to wrap it in a dive and create some stle rules in the layout.css

Hope this helps.

Gary

Link to comment
Share on other sites

You will need to put the javascript into the template file for the page in which you want it to appear.

Say you want it in the index page you will need to put it in the /skins/YOURSKIN/styleTemplates/content/index.tpl

You might need to wrap it in a dive and create some stle rules in the layout.css

Hope this helps.

Gary

Ok thanks for that

Link to comment
Share on other sites

It also works if you click on source before you paste the code into the site document. With source off, fkeditor treats it as text. Source tells it to treat it as code.

BTW, you need to change this to a vertical format to fit better on the page ;)

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...