Adding Java Script To WP Posts Sitewide

Discussion in 'HTML & Website Design' started by splashtech, Aug 12, 2010.

  1. #1
    Hello.
    I am using the "iNove" theme with my wordpress blog and I am wanting to
    add a java script code for inline text link ads.

    There is no "Single Post" file in the editor and I need to insert the script code just before the </body> tag

    Is there any other way that I can insert this code, or a special plugin or method
    for themes that don't have a file with a </body> tag, or did I miss something while trying to find this tag???

    Thanks for any replies.
    EJ
     
    splashtech, Aug 12, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That code should go in footer.php, before the </div> of the footer or the container. If you put the code before </body>, it will be on the left side of the screen.

    BTW, the single post template is called single.php. It does not have </body>, only the footer and 404 templates do.
     
    Cash Nebula, Aug 13, 2010 IP
  3. accelerator_dd

    accelerator_dd Greenhorn

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    I wouldn't recommend adding javascript, bad for onpage SEO
     
    accelerator_dd, Aug 13, 2010 IP