Tagged: , , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25298

    I need to add javascript code to a webpage, by pasting code directly into the <head> section of a page. How is this done?

    #126441

    Hi mindspin,

    You can add code directly to the header.php file of the theme files or you can find a plugin that will allow you to add it in via a wordpress field in the backend.

    Regards,

    Devin

    #126442

    Thanks, this is done. The other item that needed to be done is to add javascript to the page. I pasted the javascript into a text box, but the code isn’t working. Is there a specific way that javascript code should be added to a page?

    Also is there the ability to post a support comment privately?

    #126443

    Javascript should be added to the footer unless you really need it to run in the header.php file instead. If you aren’t familiar with it I would really recommend just finding a plugin that will hook into the wp_footer function or wp_head as its better coding practice.

    As for private support no we don’t currently offer it at this time.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Paste code directly into the section of a page’ is closed to new replies.