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.
Removing unnecessary HEAD elements reduces page weight, eliminates potential security signatures such as the WordPress version number, and keeps your generated source code clean.
All settings are opt-in. Nothing is removed until you enable it on the Admin → Settings → Head Trimmer screen.
Removal options include:
- WordPress Version (generator meta tag)
- WordPress Version from Script and Style URLs
- All Other Version Signatures from Script and Style URLs
- Shortlink
- Shortlink from HTTP Response Headers
- Canonical
- Relational Links for Posts Adjacent to Current Post
- RSS Feeds (removes head links and disables feed endpoints)
- Really Simple Discovery Link for xmlrpc (rsd_link)
- Windows Live Writer Manifest File Link (wlwmanifest_link)
- oEmbed Discovery Links
- REST API Link and REST API Link Header
- Emoji Support
- Global Styles and SVG Filters (duotone filters)
- Gutenberg Block CSS Styles (or optionally set ‘should_load_separate_core_block_assets’ to load block styles only when needed)
- Classic Theme CSS Styles (classic-theme-styles)
- DNS Prefetch for //s.w.org
- DNS Prefetch for Google Fonts //fonts.googleapis.com
- jQuery
- JavaScript Import Map (added in WordPress 6.5)
- Interactivity API (added in WordPress 6.5)
- Image Auto Sizes Styles (added in WordPress 6.7)
- Speculation Rules (added in WordPress 6.8)
- Comment Reply Script (loads only on singular posts and pages where comments are open)