• Skip to main content

StudioPress

Customer Portal

  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
  • Login
Get Help / Usage / Genesis Features /

Add Header, Footer, and Body Scripts

Genesis makes it easy to add scripts, such as tracking and analytics scripts, to the header and footer of your website, as well as in the body of your posts and pages.

In this article:

  • Site-Wide Header and Footer Scripts
  • Page/Post Header and Body Scripts

Site-Wide Header and Footer Scripts

Log in to the WP-Admin dashboard and go to Appearance > Customize > Theme Settings to add scripts to the header and/or footer of every page across your entire site, as shown below.

Next, click Header/Footer Scripts to access the header/footer script boxes, as shown below.

Enter your script(s) into the Header Scripts and/or Footer Scripts fields as shown below, then click Publish.

After you save your settings, your scripts are included in the source code for every page on your website.



Page/Post Header and Body Scripts

You can add scripts to the header or body of a specific page or post on the page/post entry screen. Select an existing entry to edit, or go to Pages/Posts > Add New in your dashboard and scroll down to the Scripts box.

Note: If you enter body scripts, use the Body Scripts Position option to select whether to add them to the top (after the opening <body> tag) or bottom (before the closing </body> tag).



In the example below, we’ve entered some text in the Body Scripts box and selected the Bottom body scripts position.

After publishing the page/post, the scripts are included in the source code for that page/post, as shown below.



Ready to get started? Create a site or shop for themes.

Explore Genesis ProductsGenesis + Hosting

Footer

StudioPress

© 2025 WPEngine, Inc.

WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.

Products
  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
Company
  • Brand Assets
  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Developer Documentation
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble