Forums

Inserting a java script (3 posts)

  1. em
    Member
    Posted 3 years ago #

    Where would I insert a simple java script for my autoresponder on the default world press template. Do I insert it into the header and if so where. I'm very new to world press any help would be great.

  2. em
    Member
    Posted 3 years ago #


  3. petit
    Member
    Posted 3 years ago #

    What your autoresponder is and how it works is hard to know.

    Normally Javascripts in html are included in the <head> section of the page. WordPress generates normal web pages and the <head> section is produced by header.php.
    You should insert or link in your Javascript there.

    If your theme generates XHTML Strict, your pages will probably not validate as XHTML if you insert the script as you would in classic HTML.

    It will work normally in the browsers though.

    [ To have your pages validate as XHTML you would have to include the script in a CDATA section ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags