The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Using JavaScript in WordPress posts…

  • # December 6, 2012 at 11:55 am

    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. : -/

    # December 6, 2012 at 4:05 pm

    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)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed