Javascript in the <head>

I have some software that requires JS be placed at the top of the . Going back to the X theme days, I would modify one of the page templates and then select this template anytime I needed the JS on the page. Are there other ways to do this now in the Pro Theme besides the JS box in the editor?

Hi Zac,

Thanks for reaching out.

You can still use Wordpress standard way of implementing scripts to head, please check this https://webdesign.tutsplus.com/tutorials/how-to-add-custom-javascript-to-your-wordpress-site--cms-34368, especially the 2.2. Print Out Your Inline Script With the wp_head or wp_footer Action Hooks part.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.