I'm trying to add the adsense code to run inside the entries instead of at the header, footer, sidebar, etc.
I was able to edit the entries.tpl file to get the ads to show up exactly how I wanted when viewing the entries. But, when I clicked on a category and got a list of all the entries for that category, the ads were showing up there too. Is there a way to only have the special code show up inside the entry, but only when the individual entry itself is being viewed?
Thanks
Mike
adding code to entries
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: adding code to entries
Yes, you can check the
Variable for that.
Best regards,
Garvin
Code: Select all
{if $is_single_entry}
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/