badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

enabling javascript

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7103
    Plato
    Member

    I’m trying to add a script to my website (a specific page) but it keeps defaulting to <p> tags. I understand this to be a security feature when Javascript is not enabled to run on a given website. I need to fix this. Can you tell me how I can go about doing that? From my research in to this the closest I came was inputting the following line of code in to my header.php:

    <input type=”text/javascript” src=”http://nelsonandbay.ca/*location of script on server*.js”>

    Your help with this is greatly appreciated!

    I should add that the link to the live page is: SRED Calculator

    #7122
    Sanjip Shah
    Participant

    @Plato You could add your script in the header.php file. Also, you can refer to this link http://codex.wordpress.org/Function_Reference/is_page to add a condition for a specific page. Also make a child theme for any changes so that you won’t lose the changes when you update the theme.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.