#12 adsense code

open
nobody
None
5
2010-01-02
2010-01-01
Anonymous
No

how can i insert adsense code in Chirpy?
where can I insert?

please reply :(

Discussion

  • Tim De Pauw

    Tim De Pauw - 2010-01-01
    • status: open --> pending
     
  • Tim De Pauw

    Tim De Pauw - 2010-01-01

    If you look under src/templates, you'll find the source HTML files for any theme. You'll probably want to insert your AdSense code into _head.html or _foot.html.

    That won't suffice though, since AdSense isn't compatible with XHTML 1.1, which Chirpy! uses by default. However, you can easily switch to another document type, by (again) opening _head.html and changing the first lines, which contain the document type declaration. You can either remove the <!DOCTYPE ...> altogether, or paste in a new one, such as HTML 4 Transitional; there shouldn't be any major conflicts. You'll find the available document types at http://www.w3.org/QA/2002/04/valid-dtd-list.html .

     
  • windcalls

    windcalls - 2010-01-02

    hi thanks ..I have removed the <!DOCTYPE ...> code from _head.html and it solved the problum :)

    thanks

     
  • windcalls

    windcalls - 2010-01-02
    • status: pending --> open
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks