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:

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.