How Do You Add Google Adsense Code to a .tpl file?
Working with some template files (.tpl ) files this week and came across problem with Google Adsense code not showing up.
AdSense Code Not showing Up?
My Adsense code was not showing up when I pasted into some .tpl files
.I knew I was supposed to do something but took me a bit to figure out. The answer was pretty straight forward, need to add literal tags. Literal tags prevent a section of the template from being parsed, placing the contents directly into the template.
Basically- this is all you need to know:
{literal}
ADSENSE CODE HERE
{/literal}
You can open up the .tpl file in notepad or edit in your ftp client as well.














Discussion Area - Leave a Comment