Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Using JavaScript in WordPress posts…

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41199
    barkins
    Member

    So what is the definitive best practice for using JavaScript in WordPress posts, aside from creating an infinite amount of Templates?

    Placing it in the HTML tab causes a slew of problems for me, because of the P tags WordPress insists on inserting.

    My site contains a lot of posts with JavaScript. : -/

    #116551
    tbwiii
    Participant

    I think best practice is to if at all possible no use JS inline. Are you doing a lot of repetitive tasks, or is it almost always something new?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.