Guest mook25 Posted August 31, 2006 Share Posted August 31, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest garysmith Posted August 31, 2006 Share Posted August 31, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest mook25 Posted September 1, 2006 Share Posted September 1, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2006 Share Posted September 1, 2006 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 ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2006 Share Posted September 1, 2006 I use phpAdsNew for the banners on my site and it works well with CubeCart. 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.