Templates

How can I put Google Adsense or other third party ads inside my blog items?

Scenario:
"I want to include ads in the middle of all my items. How can I do this with Nucleus?"

Solution:

  1. Go to your Nucleus Admin Area, scroll down to "Templates" and click on the "Edit" link for the templates you are using. In our example, we will use the default/index and default/item templates
  2. For your default/index template, put your adsense code in the "Item Footer" section of your template. Nucleus will then show ads below every item.
  3. For your default/item template, put your adsense code after the <%body%> tag and before the <%more%> tag for the ads to appear in the middle. Nucleus will then show the item body, followed by your ads, then the item extended body (the "more" section).

Original forum thread (thanks, roel and thronic!):
http://forum.nucleuscms.org/viewtopic.php?t=13009

section: Templates | submitted by Leng on 2006.Aug.06 | 3090 views

item rate
Total votes: 8 - Rating: 6.38

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10