Title: Simple Header and Footer
Author: Alberto Reineri
Published: <strong>2024年1月9日</strong>
Last modified: 2026年9月24日

---

プラグインを検索

![](https://ps.w.org/simple-header-and-footer/assets/banner-772x250.jpg?rev=3019498)

![](https://ps.w.org/simple-header-and-footer/assets/icon.svg?rev=3019498)

# Simple Header and Footer

 作者: [Alberto Reineri](https://profiles.wordpress.org/albertoreineri/)

[ダウンロード](https://downloads.wordpress.org/plugin/simple-header-and-footer.1.1.1.zip)

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

 [サポート](https://wordpress.org/support/plugin/simple-header-and-footer/)

## 説明

Simple Header and Footer lets you add Google Analytics, Facebook Pixel, custom tracking
code, verification meta tags and more, with a single straightforward settings page.
No need to install a complex plugin with thousands of unnecessary features, and 
no need to edit your theme files.

 * **Header:** printed inside the `<head>` tag.
 * **Footer:** printed just before the `</body>` tag.
 * **Code editor** with syntax highlighting.
 * Your code stays in place when you change or update your theme.

#### A note on security

This plugin outputs the HTML and JavaScript you write, exactly as written, on every
page of your site. That is what makes it useful for tracking scripts, and it also
means the settings page should be treated like access to your theme files. Only 
users with the `unfiltered_html` capability (Administrators on a standard install;
Super Admins on Multisite) can save raw scripts. Everyone else has their code filtered
the same way WordPress filters the Custom HTML block.

This plugin does not run PHP code.

#### Privacy and GDPR

This plugin does not collect or process any personal user data. The scripts you 
add may do so: check the privacy requirements of the services you connect.

#### Translation

You can contribute to translate this plugin in your language on [WordPress Translate](https://translate.wordpress.org).

## スクリーンショット

[⌊Simple Header and Footer settings screen.⌉⌊Simple Header and Footer settings screen
.⌉[

Simple Header and Footer settings screen.

## インストール

 1. Upload the `simple-header-and-footer` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to **Settings > Simple Header & Footer**, paste your code and save.

## FAQ

### Can I run PHP code with this plugin?

No. Earlier versions could execute PHP stored in the header/footer fields; that 
feature was removed in 1.1.0 for security. If you were using it, your previous code
was saved for you on the plugin’s settings page.

### My tracking code is printed on the page as text. What happened?

Version 1.1.0 could remove the `<script>` tags from saved code while updating. This
was fixed in 1.1.1, but the tags that were already removed can’t be recovered automatically:
open Settings > Simple Header & Footer, wrap your code in `<script>` and `</script
>` tags (and re-add any script tag that loads an external file, like the Google 
tag loader) and save.

### Why were my scripts removed when I saved?

Your account does not have the `unfiltered_html` capability, which WordPress requires
to save raw scripts (this is the default on Multisite sub-sites). Ask a Super Admin,
or save the code from an account that has it.

### Where exactly is the code printed?

Header code is printed with the `wp_head` hook (late, priority 11). Footer code 
is printed with the `wp_footer` hook. Your theme needs to call both, as any well-
built theme does.

## 評価

![](https://secure.gravatar.com/avatar/69033fcab712ca7846cffdce64c01fb51aadc6acb3c4f00f9a27f1c31da7adbf?
s=60&d=retro&r=g)

### 󠀁[Very fast to use!](https://wordpress.org/support/topic/very-fast-to-use/)󠁿

 [lucaromano](https://profiles.wordpress.org/lucaromano/) 2024年1月9日

Super Simple and very fast to use! Thanks!

 [ 1件のレビューをすべて表示 ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/)

## 貢献者と開発者

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

貢献者

 *   [ Alberto Reineri ](https://profiles.wordpress.org/albertoreineri/)

[“Simple Header and Footer” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/simple-header-and-footer)

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

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

## 変更履歴

#### 1.1.1

 * Fixed: version 1.1.0 could remove the `<script>` tags from your saved code while
   updating, so the code was printed on the page as plain text. The update no longer
   rewrites your saved code, and background requests can no longer alter it.
 * If your header or footer code shows up as text on your site, the settings page
   now tells you: wrap it in `<script>` tags again and save.
 * Updates that don’t come from a logged-in user (WP-CLI, imports) no longer go 
   through the script filter.

#### 1.1.0

 * Security: the settings can no longer be saved without a valid security token (
   CSRF protection).
 * Security: removed the ability to execute PHP code from the header/footer fields.
   Existing code that contained PHP is preserved on the settings page so nothing
   is lost.
 * Security: raw script saving is restricted to users with the `unfiltered_html`
   capability.
 * The settings page now uses the WordPress Settings API and only accepts the two
   fields it displays.
 * Removed unused code and the cache-busting timestamp on the admin stylesheet.
 * Added a gentle, dismissible review request on the settings page (shown after 
   a week).
 * Tested with WordPress 7.1.

#### 1.0.0

 * Initial release.

## メタ

 *  バージョン **1.1.1**
 *  最終更新日 **3週間前**
 *  有効インストール数 **50+**
 *  WordPress バージョン ** 5.8またはそれ以降 **
 *  検証済み最新バージョン: **7.1.3**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/simple-header-and-footer/)
 * タグ
 * [analytics](https://ja.wordpress.org/plugins/tags/analytics/)[Facebook Pixel](https://ja.wordpress.org/plugins/tags/facebook-pixel/)
   [footer](https://ja.wordpress.org/plugins/tags/footer/)[header](https://ja.wordpress.org/plugins/tags/header/)
   [scripts](https://ja.wordpress.org/plugins/tags/scripts/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/simple-header-and-footer/advanced/)

## 評価

 5つ星中5つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-header-and-footer/reviews/#new-post)

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

## 貢献者

 *   [ Alberto Reineri ](https://profiles.wordpress.org/albertoreineri/)

## サポート

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

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