Title: Head Trimmer
Author: John Dalesandro
Published: <strong>2022年5月26日</strong>
Last modified: 2026年6月12日

---

プラグインを検索

![](https://ps.w.org/head-trimmer/assets/banner-772x250.png?rev=3564756)

![](https://ps.w.org/head-trimmer/assets/icon-256x256.png?rev=3564756)

# Head Trimmer

 作者: [John Dalesandro](https://profiles.wordpress.org/dalesandro/)

[ダウンロード](https://downloads.wordpress.org/plugin/head-trimmer.1.0.6.zip)

 * [詳細](https://ja.wordpress.org/plugins/head-trimmer/#description)
 * [レビュー](https://ja.wordpress.org/plugins/head-trimmer/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/head-trimmer/#installation)
 * [開発](https://ja.wordpress.org/plugins/head-trimmer/#developers)

 [サポート](https://wordpress.org/support/plugin/head-trimmer/)

## 説明

**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)

## スクリーンショット

[⌊Head Trimmer admin settings screen.⌉⌊Head Trimmer admin settings screen.⌉[

Head Trimmer admin settings screen.

## インストール

#### Install

 1. Install Head Trimmer through the WordPress.org plugin repository or by uploading
    the .zip file using the Admin  Plugins  Add New function.
 2. Activate Head Trimmer on the Admin  Plugins screen.
 3. Customize settings on the Admin  Settings  Head Trimmer screen.

#### Uninstall

 1. Deactivate the plugin on the Admin  Plugins screen. All plugin files and settings
    will be retained.
 2. Delete the plugin on the Admin  Plugins screen. This deletes both the plugin files
    and all plugin settings stored in the database.

## FAQ

### The setting to remove a particular element is checked. Why do I still find the element in the source?

Please verify settings for other installed plugins which may re-add an element. 
As an example, various SEO plugins may include an option to add the canonical or
relational links.

### I set the option to remove the WordPress version number from scripts and styles. Why do I still find version numbers in script and style URLs?

Head Trimmer removes the installed WordPress version number from script and style
URLs. It does not remove version numbers generated by other plugins such as caching
and optimization plugins.

### I enabled “Remove Interactivity API”, “Remove JavaScript Import Map”, “Remove Image Auto Sizes Styles”, or “Remove Speculation Rules” and something on my site broke.

These options may break blocks or plugins that rely on the WordPress Interactivity
API, ES module imports, or automatic image sizing. For example, the navigation block
depends on the Interactivity API. If you experience issues, uncheck the relevant
options on the Admin  Settings  Head Trimmer screen.

### Will removing these elements break my site?

Most elements Head Trimmer can remove are informational or legacy features that 
modern sites do not need. However, some options such as Remove jQuery, Remove Interactivity
API, Remove JavaScript Import Map, and Remove Image Auto Sizes Styles can break 
functionality if your theme or plugins depend on them. Speculation Rules is generally
safe to remove as it only affects browser prefetching of internal links. Removing
Canonical can negatively affect SEO on paginated archives. Removing jQuery will 
also prevent any scripts that depend on jQuery from loading. Review the description
next to each setting before enabling it, and test after making changes.

### Does Head Trimmer affect the WordPress admin?

Options that could interfere with admin functionality are automatically limited 
to the front end only. These include removing emoji support, block styles, classic
theme styles, jQuery, and the Interactivity API. The settings screen notes which
options do not affect administrative screens.

### I enabled “Remove Canonical” and I am concerned about SEO.

WordPress outputs canonical links on paginated archives such as page 2 and page 
3 of post listings. Removing canonical links from these pages can result in duplicate
content issues in search engines. If your site uses pagination and SEO is a concern,
consider leaving this option unchecked or using an SEO plugin that manages canonical
links independently.

### I enabled “Remove jQuery” and scripts on my site stopped working.

Removing jQuery also prevents any scripts that declare jQuery as a dependency from
loading. This includes many theme and plugin scripts such as sliders, lightboxes,
and form handlers. If you experience broken functionality after enabling this option,
uncheck it on the Admin  Settings  Head Trimmer screen.

### I enabled “Remove REST API Links” but the REST API is still accessible.

This option only removes the REST API discovery links from the page source and HTTP
response headers. It does not disable the REST API itself. If you need to restrict
REST API access, that requires a separate approach outside the scope of this plugin.

### I enabled “Remove Image Auto Sizes Styles” and my images look smaller than expected.

The image auto sizes CSS fix exists to correct a rendering issue in some browsers
where images using sizes=auto appear smaller than their container. Removing it may
cause this visual issue to reappear. If you notice images displaying incorrectly
after enabling this option, uncheck it on the Admin  Settings  Head Trimmer screen.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Head Trimmer はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献し
ています。

貢献者

 *   [ John Dalesandro ](https://profiles.wordpress.org/dalesandro/)

[“Head Trimmer” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/head-trimmer)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/head-trimmer/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/head-trimmer/)をチェックするか、
[開発ログ](https://plugins.trac.wordpress.org/log/head-trimmer/)を [RSS](https://plugins.trac.wordpress.org/log/head-trimmer/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.6

 * Minor code quality and performance improvements

#### 1.0.5

 * Adds option to remove JavaScript Import Map
 * Adds option to remove Interactivity API
 * Adds option to remove Image Auto Sizes Styles
 * Adds option to remove Speculation Rules
 * Adds option to load comment reply script only when needed
 * Minor changes to improve code readability

#### 1.0.4

 * Adds option to remove classic themes CSS styles

#### 1.0.3

 * Adds option to set ‘should_load_separate_core_block_assets’ instead of removing
   Gutenberg Block CSS Styles entirely

#### 1.0.2

 * Minor changes to improve code readability and internationalization

#### 1.0.1

 * Minor changes to improve code readability and internationalization

#### 1.0.0

 * Initial Release

## メタ

 *  バージョン **1.0.6**
 *  最終更新日 **3週間前**
 *  有効インストール数 **20+**
 *  WordPress バージョン ** 5.9またはそれ以降 **
 *  検証済み最新バージョン: **7.0**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/head-trimmer/)
 * タグ
 * [clean](https://ja.wordpress.org/plugins/tags/clean/)[head](https://ja.wordpress.org/plugins/tags/head/)
   [meta](https://ja.wordpress.org/plugins/tags/meta/)[remove](https://ja.wordpress.org/plugins/tags/remove/)
   [security](https://ja.wordpress.org/plugins/tags/security/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/head-trimmer/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/head-trimmer/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/head-trimmer/reviews/)

## 貢献者

 *   [ John Dalesandro ](https://profiles.wordpress.org/dalesandro/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/head-trimmer/)