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.

Did You Like This Post? Share with Your Favorite Social Media! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Sphinn
  • del.icio.us
  • Digg
  • Technorati
  • De.lirio.us
  • Reddit
  • Smarking
  • YahooMyWeb
  • Netscape
  • Slashdot
  • StumbleUpon

Read Other Related Blogging and Web Marketing Posts

    Favourite Word Press Plugins
      Editing a Widget- Changing the Meta Widget in Wordpress
        Here’s a Weird One- “The requested theme does not exist” when in Theme Editor
          Trouble adding MyBlogLog Plugin to Wordpress
            Basic HTML Cheat Sheet - Basic HTML Code and Tags To Use in Your Blog

            Discussion Area - Leave a Comment




            dofollow directory logo