• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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:

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.