Header Footer Script Adder

Header Footer Script Adder is a powerful and user-friendly WordPress plugin that allows you to easily insert custom HTML, CSS, and JavaScript code into your website’s header, body, and footer sections. With advanced conditional loading options and per-page script overrides, you have complete control over when and where your scripts load.

Key Features

  • Three Script Locations: Add scripts to header (<head>), body (after <body> tag), and footer (before </body> tag)
  • Conditional Loading: Control where scripts load – sitewide, homepage only, posts & pages, or archive pages
  • Per-Page Overrides: Add page-specific scripts that work alongside global scripts
  • Syntax Highlighting: Built-in code editor with syntax highlighting using WordPress’s CodeMirror integration
  • Security First: All input is sanitized while preserving valid HTML, CSS, and JavaScript
  • WordPress Standards: Built following WordPress coding standards and best practices
  • Block Editor Compatible: Works seamlessly with both Gutenberg and Classic Editor
  • Performance Optimized: Minimal database queries and efficient script loading

Perfect For

  • Google Analytics and tracking codes
  • Google Tag Manager implementation
  • Custom CSS styles
  • JavaScript functionality
  • Meta tags and SEO scripts
  • Social media pixels
  • Chat widgets and customer support tools
  • A/B testing scripts
  • Custom fonts and external resources

Conditional Loading Options

  • Sitewide: Load scripts on all pages (default)
  • Homepage Only: Load scripts only on the front page
  • Posts & Pages: Load scripts on individual posts and pages only
  • Archive Pages: Load scripts on category, tag, and other archive pages only

Security & Performance

  • Input sanitization prevents malicious code injection
  • Capability checks ensure only administrators can modify scripts
  • Nonce verification for all form submissions
  • Minimal front-end performance impact
  • Clean uninstall process

Developer Friendly

  • Clean, well-documented code
  • WordPress coding standards compliant
  • Extensible architecture
  • Translation ready
  • Multisite compatible

Donations

If you find this plugin helpful, please consider supporting its development with a small donation. Your support helps maintain and improve this plugin.

Donate via PayPal: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ESSBBUCDBPAG2

Thank you for your support!

Privacy Policy

Header Footer Script Adder does not collect, store, or transmit any personal data. The plugin only manages the custom scripts you choose to add to your website. Any data collection would be dependent on the scripts you add, not the plugin itself.

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录