3 Ways To Load Scripts Within the Opening & Closing Body Tags

Many scripts, including Googles, suggest loading the scripts within the opening and closing body tags.

1. Genesis includes a global meta box for Header and Footer scripts which loads scripts outside the opening and closing body tags. Here it is here located on the Genesis > Theme Settings page:

header-footer-scripts

2. You’ll also find Page Specific Scripts meta box located on all Edit Post/Page screens. Here it is here and it loads any scripts wrapped in script tags using the wp_head hook which outputs before the opening body tag.

page-specific-scripts

There’s at least 3 ways to load your scripts with the body tags of your pages HTML in Genesis.

Here’s the code snippets for logged in members:

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.