Header & Footer Code
Header & Footer Code Inject header, body, or footer snippets site-wide-analytics, pixels, chat, meta tags-without touching the theme.
What it does
Section titled “What it does”Inject header, body, or footer snippets site-wide-analytics, pixels, chat, meta tags-without touching the theme.
- Intercepts front-end requests (redirects, custom routes, or access rules).
- Can change front-end scripts, styles, or head markup.
- Includes settings so you can tune this module for your site.
- Header Code.
- Body Code.
- Footer Code.
When to use it
Section titled “When to use it”Enable it if:
- You specifically need: Inject header, body, or footer snippets site-wide-analytics, pixels, chat, meta tags-without touching the theme.
- You want this Site Tools feature without installing a separate plugin for it.
When not to use it
Section titled “When not to use it”Settings
Section titled “Settings”Options you can configure for this module include:
- Header Code
- Body Code
- Footer Code
How to enable it
Section titled “How to enable it”- Go to WP PowerSuite -> Modules.
- Open Site Tools or search for “Header & Footer Code”.
- Toggle Header & Footer Code on.
- Open the module settings and save.
Toggle it off anytime to stop this module from loading.
How to test it
Section titled “How to test it”- Confirm Header & Footer Code is enabled under WP PowerSuite -> Modules -> Site Tools.
- Use the feature this module controls (the admin UI, front-end behavior, upload, login flow, etc.).
- ✅ Pass: you see the module-specific behavior described above.
- ❌ Fail: re-check this module’s settings, then look for another plugin doing the same job.
Troubleshooting
Section titled “Troubleshooting”- No change after enabling. Confirm the toggle is on, hard-refresh, and review this module’s settings.
- Conflicts. Temporarily disable other plugins that implement the same feature.
- Unexpected side effect. Toggle Header & Footer Code off to revert, then re-enable with adjusted settings.
What does Header & Footer Code do?
Inject header, body, or footer snippets site-wide-analytics, pixels, chat, meta tags-without touching the theme.
Is Header & Footer Code free?
Yes. Enable it under WP PowerSuite -> Modules.
Does Header & Footer Code have settings?
Yes. Open module settings from WP PowerSuite -> Modules after enabling it.
How do I turn Header & Footer Code off?
Go to WP PowerSuite -> Modules, find Header & Footer Code, and toggle it off.
Developer notes (hooks & filters)
Source: modules/header-footer-code/admin.php, modules/header-footer-code/module.php.
Boot: display · context: frontend.
Hooks (non-exhaustive): wp_head, wp_body_open, wp_footer, template_redirect.