Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPress管理画面でフッターを変更する方法

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPress管理画面のフッターメッセージを変更したいですか?

WordPressダッシュボードにある初期設定のフッターには、サイトがWordPressで作成されたことが記載され、バージョン番号が表示されるだけです。テーマを開発した自分自身をクレジットしたり、プラグインのプロバージョンを宣伝したり、あるいはクライアントのためのサポートリンクを追加したりするために、これを変更したいと思うかもしれない。

この投稿では、WordPressの管理画面でフッターを変更する方法を紹介します。

How to change the footer in WordPress admin

管理画面フッターを変更する理由

WordPressサイトの管理エリアにある初期設定のフッターはとても基本的なもので、ほとんどのユーザーにとってあまり意味がありません。

WordPressのトップページへのリンクがあり、現在実行しているWordPressのバージョンが表示されます。更新がある場合は、フッターのリンクが変更され、サイトを更新することができます。

Change the WordPress Admin Panel footer

それだけです。しかし、自分のサイトへのリンクを貼ったり、ユーザーに役立つリンクを提供するように変更したり、あるいは、どのみちこのスペースはそれほど頻繁に見られるものではないので、完全に削除することもできます。

それでは、WordPressの管理画面フッターを2種類の方法で変更する方法を見ていきましょう。以下のリンクをクリックして、お好みの方法を選択してください:

管理ダッシュボードのフッターを変更するには、テーマのfunctions.phpファイルにコードスニペットを挿入します。

通常、WordPressのコアファイルへのコードスニペットの貼り付けは、上級ユーザーのみに推奨しています。なぜなら、ちょっとしたミスでもサイトを壊してしまう可能性があるからです。さらに、テーマを更新すると、functions.phpファイルへの変更はすべて消去されます。

そのため、誰でも安全にWordPressファイルにコード・スニペットを追加できる無料のWPCodeプラグインを使用します。

まず、WPCodeをインストールし、有効化する必要があります。詳しい手順については、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

それが完了したら、管理ダッシュボードの左メニューにあるCode Snippets ” + Add Snippetに行く。

フッター」を検索し、「管理画面フッターテキストの変更」という項目にマウスオーバーするだけです。

あとは、「スニペットを使う」ボタンをクリックするだけだ。

Use snippet in WPCode to change the footer

次に、スニペットの編集画面に移動します。WPCodeはライブラリから追加したスニペットの設定を自動的に行います。

次に、$footer_textで始まる行を、新しいコンテンツに表示したい内容に変更します。リンクやプレーンテキスト以外のものを含める場合は、HTMLを使う必要がある。

WPCode edit snippet to change footer text

フッターテキストをお好みに変更したら、スイッチを「有効化」に切り替え、「更新」ボタンをクリックするだけです。

新しい管理画面フッターがサイトに表示されます。特定の変更によって異なりますが、WPCodeから初期設定のスニペットを有効化すると、このように表示されます:

The example admin panel footer for the WPCode snippet

このコード・スニペットの動作が気に入ったら、コード・スニペット “ ライブラリにあるWPCodeスニペット・ライブラリをご覧ください。

これは、プラグインに無料で含まれているすべてのものを表示します。

wpcode library

WPCodeのビルトインライブラリには、設定済みのスニペットが多数あります。例えば、WPCodeはWordPress REST APIWP管理バー、またはメディア添付ファイルを無効化することができます。

WordPressの管理画面でフッターを変更するもう一つの方法は、テーマの functions.phpファイルにコードを追加することです。ちょっとしたミスでもサイトを壊してしまう可能性があるため、上級ユーザーのみにお勧めします。

詳しくは、ウェブ上のコード・スニペットをWordPressに貼り付ける方法の詳細ガイドをご覧ください。

まず、FTPまたはWordPressホスティングサービスのファイルマネージャーからサイトに接続する必要があります。次に、サイトの/wp-content/themes/your_theme/ディレクトリに移動します。

Where to find functions.php
Then you just need to edit the file You can open it in a plain text editor like Notepad or you can use the built in editor if your host provides one

このコードをfunctions.phpファイルにコピー&ペーストするだけです。

add_filter(
	'admin_footer_text',
	function ( $footer_text ) {
		// Edit the line below to customize the footer text.
		$footer_text = 'Powered by <a href="https://www.wordpress.org" target="_blank" rel="noopener">WordPress</a> | WordPress Tutorials: <a href="https://www.wpbeginner.com" target="_blank" rel="noopener">WPBeginner</a>';
		
		return $footer_text;
	}
);

サンプルコードの$footer_textで始まる行のHTMLは、本当に〜してもよいですか?

The code after it was pasted into functions.php

最後にファイルを保存します。

すぐに管理ダッシュボードに新しいフッターが表示されるはずです。

The example admin panel footer for the WPCode snippet

この投稿がWordPress管理エリアのフッターを変更するのにお役に立てば幸いです。WordPress サイトの構築費用はいくらかかるか、または中小企業に最適なバーチャルビジネス電話番号アプリの専門家による比較もご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

18件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Selam Mesfin says

    In my visual Editor’s toolbar, there is no ‘Insert new tag’ button, how can this be fixed? I wanted to include ‘read more’ to my long paragraphs.

    Thank You.

  3. Schofield Bryant says

    I just tried what was explained above and my website has crashed.
    Showing the following error
    Fatal error: Cannot redeclare remove_footer_admin() (previously declared in /home/cannabotanica/public_html/wp-content/themes/green-eye/functions.php:4) in /home/cannabotanica/public_html/wp-content/themes/green-eye/functions.php on line 208

    Please I need assistance now in reviving the website and correcting the error. Even the admin panel wouldn’t load.

    • Tommy says

      Try use plugin “Cliro – Custom Admin Role for Client” you will easy to edit footer in backend with more option. I used it and very happy :)

  4. Samuel Dellicour says

    The closing P tag should be removed, it is not necessary. The text will automatically be wrapped with a paragraph (with class and id).

  5. Konstantin says

    Unfortunately you neglected to mention to hook it to the “admin_footer_text” filter. This is what’s missing:

    add_filter('admin_footer_text', 'remove_footer_admin');

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。