Head Trimmer Plugin for WordPress

Head Trimmer gives you granular control over what WordPress automatically outputs in the <HEAD> element of every page. Each option is independent. Enable only the removals that make sense for your site. Nothing is removed until you enable it.

Removing unnecessary HEAD elements reduces page weight, eliminates potential security signatures such as the WordPress version number, and keeps your generated source code clean.

AI-generated image of scissors cutting through a sheet of paper containing various HTML elements.

Why You Might Need This Plugin

Many WordPress users likely never pay attention to what’s being added to the <HEAD> element of their pages. However, this small piece of code can have a big impact on performance, security, and maintainability.

Here’s why the Head Trimmer plugin is valuable:

How It Works

Head Trimmer hooks into WordPress functions that generate extra <HEAD> elements and removes them before the page is rendered. The plugin provides a checklist of options you can enable or disable, giving you full control without needing to edit theme files or write custom code.

Some of the elements it can remove include:

By trimming these items, your site delivers a leaner <HEAD> section, with fewer requests and less exposure of sensitive information.

Removal Options

How to Use the Plugin

Using Head Trimmer is straightforward, even for non-technical WordPress users:

  1. Install and activate the plugin from your WordPress dashboard.
  2. Adjust settings under the plugin’s configuration page to fit your needs. You’ll see a list of checkboxes corresponding to common <HEAD> elements. Simply check the items you want to remove.
  3. Verify the results by viewing your site in a browser. Inspect the page source and confirm that the unwanted elements have been removed.

Download

Download the Head Trimmer Plugin from the WordPress plugin directory.

Summary

The Head Trimmer plugin is a powerful yet lightweight solution for WordPress users who want to optimize site performance, enhance security, and maintain cleaner code. By eliminating unnecessary <HEAD> elements, you gain faster load times, reduce exposure to potential threats, and take greater control over what’s included in your site’s HTML output.

Whether you’re running a personal blog, a professional portfolio, or a large business site, trimming the <HEAD> is a smart step toward a faster and more secure WordPress experience. Updated regularly to keep pace with new WordPress releases.

If you find Head Trimmer helpful, check out my other WordPress plugins: Analytical Spam Filter, Micro Contact Form, and Custom Field Embedder.