For WordPress
GitHub
Home Modules Documentation FAQ Download
Docs Header & Footer Snippets

Header & Footer Snippets

Add custom code to your site without modifying theme files.

Overview

Add custom code to your site's header, body open, and footer without modifying theme files.

Injection Points

LocationHookPriorityUse Cases
Headerwp_head20Meta tags, analytics, CSS
Body Openwp_body_open20Tag Manager, no-script fallbacks
Footerwp_footer20Tracking pixels, chat widgets, deferred JS

Google Analytics 4 Integration

Built-in GA4 support with just a Measurement ID. Simply enter your G-XXXXXXXXXX ID and the tracking code is automatically added.

Automatic Skipping

Snippets are NOT output in:

  • Admin pages (is_admin())
  • RSS feeds (is_feed())
  • REST API requests (REST_REQUEST)

Developer Filters

Disable snippets on specific pages
add_filter( 'functionalities_snippets_output_enabled', function( $enabled ) { if ( is_page( 'landing-page' ) ) { return false; } return $enabled; });