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の管理ダッシュボードにダークモードを追加する方法を紹介する。

How to Add Dark Mode to Your WordPress Admin Dashboard

ダークモードとは何か、なぜWordPressに追加するのか?

深夜や照明の少ない場所でWordPressサイトを作業することが多い場合、コンピューター画面の明るい光が眼精疲労の原因になることがあります。

明るい光は自然な概日リズムを乱し、入眠を難しくするという説さえある。

このことを念頭に置いて、多くのアプリやサイト、さらにはOSには、画面からの白色光の量を減らすダークモードがビルトインされている。

Dark mode in macOS

もしあなたがiPhoneやアンドロイドのスマートフォンを持っているなら、トグルを使ってダークモードに切り替えることができるかもしれない。

YouTubeのような人気サイトでは、ビルトインのダーク配色を用意しているところもある。

An example of Dark Mode on the YouTube website

WordPressのサイトにダークモードを追加することは訪問者にとって素晴らしいことですが、サイトのバックエンドにもダークモードを追加したいと思うかもしれません。WordPressには管理画面用の配色が用意されていますが、初期設定の配色はどれも実際に画面を通して入ってくる白い光の量を減らすものではありません。

ということで、WordPressの管理エリアにダークモードを追加して、深夜や暗い場所でも快適にサイト作業ができるようにしよう。

WordPress管理エリアにダークモードを追加する簡単な方法

WordPressの管理ダッシュボードにダークモードを追加する最も簡単な方法は、WP Dark Modeを使うことだ。このプラグインを使えば、管理者は個別クリックでダークモードを有効化・無効化できる。

さらに良いのは、複数投稿者でWordPressブログを運営している場合、それぞれの投稿者が好みに応じてダークモードのオン・オフを切り替えられることだ。プラグインは、次回ログイン時に彼らの好みを記憶する。さらに詳しく知りたい方は、WPダークモードのレビューをご覧ください。

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

有効化したら、WordPressダッシュボードのWPダークモード ” 設定ページに移動し、管理画面ダークモードタブをクリックします。

次に、「管理者ダッシュボードダークモードを有効化」ボタンを有効化します。

Enabling dark mode in WordPress

好みに応じて、ブロックエディターのダークモードを有効化することもできる。

その後、下にスクロールして「変更を保存」ボタンをクリックします。

Saving WP Dark Mode plugin settings

この時点で、管理ツールバーに新しい「明暗」スイッチが表示されます。

このトグルをクリックすると、管理エリアでダークモードの有効化と無効化を切り替えることができる。

Turning on the dark mode in WordPress

ダークモード」は管理者の配色ではないので、有効化した後は管理者の配色を変更してみるとよいでしょう。

暗い配色を選ぶことで、画面からの光の量をさらに減らすことができます。もうひとつのオプションは、明るい配色を選ぶことで、ダークモードのダッシュボードを読みやすくすることです。

管理者の配色を変更するには、ユーザー ” プロフィールに移動し、管理者の配色の下にあるオプションのいずれかを選択します。

Admin Color Scheme

サイトのフロントエンドでダークモードを有効化することもできます。

これを行うには、「Frontend Dark Mode」タブに切り替え、「Enable Frontend Dark Mode」ボタンを有効化する。

Enabling dark mode for the website's front end

前回同様、完了したら必ず『変更を保存』ボタンを押してください。

訪問者は、あなたのWordPressブログやサイトの通常のライトバージョンを見ることができます。しかし、右下のアイコンをクリックすることで、いつでもダークモードに切り替えることができます。

Adding dark mode to your WordPress website

管理エリアのカスタマイズのヒントやコツについては、以下のガイドをご覧ください:

このチュートリアルで、WordPressの管理ダッシュボードにダークモードを追加する方法をご理解いただけたでしょうか。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

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

  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. Jiří Vaněk says

    Thank you for the advice. I have both system and browser dark mode set on Windows 11, but WordPress keeps ignoring this setting. Browser settings and even a browser extension that should force dark mode didn’t help. And now I understand that it will be a problem of WordPress missing color scheme for dark mode. Thank you for the valuable experience and advice on how to force dark mode.

  3. Dan says

    Thank you.
    This is a workaround plugin, which is not ideal.
    I’ve observed that every time I click anything in the interface, it blinks for 1 second in the original color and then switches to dark mode.
    Ideally, WordPress should add it to its color scheme.

    • WPBeginner Support says

      You may want to change your color scheme under User>Profile to set the base color to help prevent the delay in the style’s loading.

      管理者

  4. Kuldeep Singh says

    Awesome!

    Thank you guys. It helped me to get desired dashboard dark theme. But I need the default editor background in dark theme too. It there any single plugin which can change the dashboard and editor background to dark mode?

    • WPBeginner Support says

      You would want to reach out to the plugin’s support for their recommendation first

      管理者

返信を残す

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