WordPress defaults security feature restricts use of JavaScript into your content. However there are plenty of plugins out in WordPress that allows JavaScript within page or posts. After testing few, the most easy and workable plugin we found is Scripts n Styles. It provides awesome features like
Blog Wide JavaScript – Code entered here will be included in every page (and post) of your site, including the homepage and archives. The code will appear before Scripts that were registered individually. There are options for
- Scripts for the head element
- Scripts for the body tag
Blog wide CSS – Code entered here will be included in every page (and post) of your site, including the homepage and archives. The code will appear before Styles that were registered individually.