On This Page
Header & Footer Code
Overview
Header & Footer Code lets you add custom HTML, CSS, or JavaScript to the header (wp_head) and footer (wp_footer) of your site. Ideal for tracking codes (Google Analytics, Facebook Pixel), analytics, and third-party scripts. Simple text areas for header and footer. No need to edit theme files. Code is output on the frontend. Can exclude admin or specific pages if configured. Lightweight alternative to Code Snippet when you only need header/footer injection.

Features
Header Code
Footer Code
Simple Interface
Frontend Only (Optional)
How It Works
Enable the Module
Add Code
Verify

Installation & Activation
Install WP PowerSuite
Enable the Module
Add Code

Use Cases
- AnalyticsIntegrationGoogle Analytics or other tracking codes
- PixelTrackingFacebook Pixel or other marketing pixels
- ChatWidgetsChat widgets (e.g. Intercom, Drift)
- CustomScriptsCustom CSS or JavaScript snippets
Frequently Asked Questions
What is the difference from Code Snippet?
Header & Footer Code is simpler: two fixed locations (header and footer). Code Snippet supports multiple snippets, shortcodes, PHP, and more locations. Use Header & Footer for basic needs; Code Snippet for advanced use.
Can I add PHP?
Typically no. Header and Footer Code outputs HTML/CSS/JS as-is. For PHP,use the Code Snippet module with PHP type
Troubleshooting
- Code not appearingEnsure the module is enabled and you saved the settings. Check that you are viewing the frontend (not admin). Clear cache if using a caching plugin. Verify the code is valid (no syntax errors breaking the page).
