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で管理バーが表示されない問題を解決する方法(3つの方法)

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

WordPressの管理バーが表示されない問題を解決したいですか?

管理バーは、ログイン中にサイトのすべてのページに外観されるフローティングバーです。WordPressの管理エリアのさまざまなセクションに移動するための便利なショートカットがあります。

この投稿では、WordPressの管理バーが表示されない問題を解決する方法を順を追って説明します。

How to fix missing admin bar issue in WordPress (3 ways)

WordPressで管理バーが表示されない問題とは?

ほとんどのWordPressサイトでは、ログイン中の管理バーは常に画面上部にあります。しかし、ユーザーが管理バーが表示されない問題を経験している場合、画面上部に白いバーが表示されます。

投稿やページを編集したり、コメントに返信したり、プラグインの設定を変更したり、その他のアクションを行いたいときはいつでもWordPressの管理画面(WP admin)にアクセスしなければならないので、これはとても不便なことです。つまり、ログイン中のユーザーはサイトのフロントエンドから簡単に何かを行うことができないのです。

管理バーが表示されない問題は、通常、テーマがうまくコーディングされていなかったり、プラグインが競合していたり、ユーザープロフィールが正しく設定されていなかったりすることが原因です。

それでは、あなたのサイトで管理バーが表示されない問題を解決する方法をいくつかご紹介しましょう。以下のクイックリンクから、試したい方法を選んでください:

方法1:ユーザープロフィールの設定を確認して管理バーの欠落を直す

WordPressの管理バー問題の最も簡単な解決方法のひとつは、WordPressのユーザープロフィール設定を確認することです。特定のユーザーの管理バーをオフにする設定があります。

これは、あなたのサイトで他のユーザーによって誤ってオフにされているか、無効化されている可能性があります。

これを確認するには、WordPress管理画面のユーザー ” プロフィールに移動し、「ツールバー」オプションを設定します。

Show toolbar in user profile

サイト表示時にツールバーを表示する』にチェックが入っていることを本当に〜してもよいですか?

その後、ページ下部の「プロフィールを更新」ボタンをクリックし、設定を保存します。

方法2:WordPressのテーマファイルをチェックして管理バーの欠落を修正する

管理バーが表示されないもう一つの一般的な原因は、WordPressテーマにwp_footer関数がない場合です。

まず、デフォルトのテーマに戻してください。そうすることで、現在のテーマが問題を引き起こしているかどうかを確認することができます。

WordPressダッシュボードの外観 ” テーマに移動し、初期設定テーマの1つにマウスオーバーし、「有効化」をクリックするだけです。

Activate new WordPress theme

管理バーが表示される場合は、既存のWordPressテーマに問題があることがわかります。

さて、元のテーマに切り替え、WordPressの完全なバックアップを作成し、何かあったときにサイトを復元できるようにしましょう。

その後、SFTP/FTPクライアントまたはWordPressホスティングアカウントダッシュボードのファイルマネージャーアプリを使用してWordPressサイトに接続する必要があります。

詳しくは、FTPを使ってWordPressにファイルをアップロードする方法の初心者向けガイドをご覧ください。

次に、あなたのサイトのテーマフォルダ(wp-content/themes/your-theme-nameの中にある)に行き、footer.phpというファイルを見つけてください。

Open theme folder footer.php file

その後、お好みのテキストエディターでファイルを開き、ファイルの最後までスクロールして、<body>タグを閉じる前にこのコードがあるかどうかを確認する必要があります

<?php wp_footer(); ?>

これがない場合は、コードを追加し、保存したファイルをサーバーにアップロードする必要があります。

Functions.phpファイルに追加されたコードをチェックする

管理バーがないエラーのもう一つの原因は、テーマのfunctions.phpファイルによって非表示になっていることです。このコードスニペットはテーマ開発者によって追加された可能性があります。

この問題を解決するには、functions.phpファイルを開き、ファイル内の以下のコード・スニペットを探して削除する必要があります。

add_filter( 'show_admin_bar', '__return_false' );

その後、ファイルを保存し、あなたのサイトのテーマフォルダーにアップロードするだけです。

方法3:WordPressプラグインの問題をチェックして管理バーの欠落を修正する

WordPressの管理バーが表示されない問題は、プラグインの競合やコード化されていないプラグインが原因である可能性もあります。

まず、問題の原因となっているプラグインを特定する必要があります。これを行うには、プラグイン ” インストールされたプラグインに移動し、有効化したプラグインのページに到達します。

次に、すべてのプラグインを選択し、「一括操作」のドロップダウンメニューから「無効化」を選択する必要があります。

Deactivate all plugins

次に、「適用」ボタンをクリックして、すべてのプラグインを無効化する。

その後、プラグインを1つずつ確認し、各プラグインの下にある「有効化」ボタンをクリックします。

Activate plugin one by one

プラグインを有効化した結果、管理バーが消えてしまった場合は、無効化して代わりのプラグインを探す必要があります。その他のアイデアについては、ビジネスサイトに必須のWordPressプラグインのリストをご覧ください。

最後に、管理バーが消えてしまう原因として、別の問題が考えられます。上記の解決策がどれもうまくいかなかった場合は、デバッグをオンにして、WordPressが以前は非表示だった警告や通知を表示するようにしてください。

これを行うには、wp-config.phpファイルを開き、以下のコード行を見つける必要があります:

define('WP_DEBUG', false); 

そして、’false’を’true’に変更する必要がある。

これにより、何が問題を引き起こしているのかを知る手がかりが得られ、WordPressをトラブルシューティングして問題を解決することができます。

詳しくは、初心者向けWordPressエラーのトラブルシューティングをご覧ください。

ボーナス:WordPressのメンテナンスとサポートサービス

WordPressサイトで定数問題に遭遇していたり、一般的なメンテナンス作業にうんざりしているのであれば、プロに依頼する時かもしれません。

WordPressのメンテナンスサービスでは、定期更新からバックアップ、エラーのトラブルシューティングまで、すべてをお任せいただけます。例えば、WPBeginnerメンテナンスサービスでは、24時間365日のサポート、アップタイムの監視、マルウェアの除去などをご利用いただけます。

WPBeginner Pro Maintenance Services

この投稿が「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

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

  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. photoMaldives says

    Thanks for all your excellent tuts – they have proved invaluable over the years. :)
    And good news for us that you are often featured high up in google rankings.
    For this particular issue, I had installed a security plugin that was limiting login by country – my admin bar was disappearing cos I was logged out!

    • WPBeginner Support says

      Thanks for sharing, its always good to double check if there is a simple reason behind the bar going missing. Glad to hear you were able to find what was causing it on your site :)

      管理者

  3. Sam says

    I had this problem. The toolbar was randomly popping in and out as a move through the pages. I hard reloaded the cache and it seems to have fixed for now.

  4. Clint D. says

    My issue was caused by a plugin. I forgot that I had disabled the admin bar through the plugin, White Label CMS.

    Just wasted about an hour on this. Hope this helps somebody else.

  5. Carsten Legaard says

    Now it is gone again, the admin bar, as it did so many times over the years. I have the footer.php right, but still the admin bar does not show.
    What else could bug it?

  6. Eszter says

    I had the same problem, tried a lot of suggestions, but the solution was a row in functions.php: show_admin_bar (false); . The ‘true’ value solved the problem!

  7. Michael G. Brattland says

    I recently over the last two weeks had my WordPress Admin Bar go missing on all but about a half dozen pages of my 560 WordPress Elegant Thems DIVI and DIVI Builder site. I tried all the fixes posted here and discovered that my change of the web page URL in setting to take advantage of my ISP provided security certificate, making the address a https versus http caused this issue. I changed it back to a http URL and it resolved it allowing the WordPress Admin Bar to come back on all 560 pages. My ISP is using PHP 5.4 and I have the most current WordPress 5.1. thought I would share. This has been a big challenge to resolve. Hoping my ISP can advise why this could be.

    • WPBeginner Support says

      You may want to also check with your hosting provider to ensure the SSL certificate was added correctly.

      管理者

  8. Tim Helmer says

    You may want to disable CDN and W3 Total while doing edits.
    That allows me to see the edit bar and also see changes I make real time.
    Cloudflare turns itself back on after 3hrs so no need to worry. W3 Total needs to be turned back on tho… Preview mode: under General settings

  9. Okereke Divine says

    The best solution that worked for me is creating a new user and if the issue repeats, then clear cache.

  10. Harry W says

    I have tried all of these. Nothing. Admin bar still not showing. I login and I go straight back to logged out.

    Can only get to dashboard through direct link.

    Any suggestions? Bluehost “service” is non-existent.

    • Federico Mastrianni says

      Check the ‘Admin Bar Menu’ setting in Yoast SEO>General>Features. It must be set to “OFF”.

  11. Ayoola Adesoye says

    Fixed. Thanks guys.. You guys are the reason why wordpress still exists till date. You just saved my income. My question please. I use Jetpack stat to view ,my web stat, and also use Google analytic, but they both do not bring the same stat. Jetpack can will for example show 200, while Google will show 300. And the funny part is that, on my host gator cpanel, i can view my site stat, and it also does not show the same stat. Please help, I am confused.,

  12. Ionut says

    For those who use WP Fastest Cache put in exclude/exclude css, following css:

    admin-bar.min.css, dashicons.min.css

    At least for me this was the solution – i hope it will help

    • SiGa says

      @IONUT – thanks for saving my day by leaving this hint here. Adminbar was not showing up only on Edge, adding those rules in WPFC solved it. Never would have thought of this!

  13. Chris says

    Hey and thanks for the post. I have the same “blocked” message on my website

    I have added the part as described and it shows up when I look at the files, however it does not show up in the actual liive website. Looking at the source code there, I can just see inserted code from the plugins.

    I also checked with my provider one.com as well and they cant replicate the issue, it works for them using my account. So i reformatted my pc to make sure its not a browser issue, still the problem is happening. Also tried the default theme and diasbling all plugins as well as adding code to the htaccess file..

    Any idea why this is happening?

    Thanks
    Chris

  14. sadatia says

    my site is
    Suddenly i have found that my admin bar (logged in user) info open to all viewers.
    Its horrible. Need a solutions.

  15. Arinze Prince says

    Please help me out

    When I try to login via the front-end of the site, I enter my credentials, and hit log in. The page refreshes, and I’m not logged in. The admin bar does not appear, and I cannot access member-only parts of the site.

    When I log in via wp-admin, I can log in just fine. I go to the back-end admin dashboard. However, when I, while logged into wp-admin, browse to the main site (kmtc.be) it still shows I’m not logged in. The admin bar does not appear, I cannot access member-only parts of the site – despite being logged in. I’m thinking there’s some sort of breach between the back and front end of the site.

    When I deactivate all plugins, the problem persists. When I change the theme AND deactivate the plugins, still, I can’t login. I’ve done an overwrite of all wordpress and theme files – I still cannot login via the front-end.

    Help will be very much appreciated!

  16. Fernando Santos says

    If nothing mentioned in the post works, try changing the WordPress Address (URL) and the Site Address (URL) at Settings > General by adding or removing the www to them.

    If it works, you can switch it back then.

    Worked for me!

    • Raphael says

      thanks man! this solved my isue.
      It seems that some url rewrite in the database was not completed and after doing what you instructed it gets updated and all gets back. simple as that.

      Valeu meu caro! abs!

    • Paul says

      This did it for me. Nothing else in this thread helped, but this did it.

      Thank you for this. Duly noted this fix!

  17. Michael Warren says

    In my case it was a CSS conflict hiding the text of the wpadmin bar. But not CSS from the theme or plugin stylesheets. It was a Chrome extension called Stylebot adding conflicting CSS that hid some of the items.

  18. Silver Knight (Greg) says

    I noticed there was some script code below the wp_footer() call. I moved that line of code to below the script and my admin bar came back.

    Thanks for the info.
    Greg

  19. Behdad Lotf says

    none of these solutions worked for me! something weird happened to my site when I log in I cant view admin bar and also visual composer grid posts dont load they show nothing I have to admit that in my previous server i didnt have this problem can the problem be caused becauase of something related to server I recently moved to?

  20. Wayan Adika says

    thanks a lot, I try to build WordPress theme from scratch, and find if admin bar is missing, then I search through Internet for the solution and found your site and fix the problem by put the code to the footer. Once again thank you very much

  21. Terry says

    Thanks for posting this! However, after trying these suggestions, discovered that my problem was Sucuri security plugin hardening settings, which did not go away even when the plugin was turned off, so it masked the plugin being the problem when I tried that troubleshooting step that you listed. I had to reactivate the plugin and “unharden” the settings to fix the problem. (Not sure which specific hardened item did the trick, as I just reverted all to the original state.) It also fixed the problem we were having with the visual editor not working as well, by the way. Overzealous security setting! Just sharing this in case someone else is pulling out their hair like I was and wishing a search had brought up this particular issue that was not easily uncovered.

  22. John O'Brien says

    What do we do if the line IS there? I checked my file and everything is AOK. The wierd thing about my development site I am playing with is that if I go to the HOME page, the admin bar goes away. If I navigate to any of the other pages, the admin bar comes back. What is causing this?

  23. pete says

    in my case it was because of a caching plugin (fastest cache). I m not 100% sure why but it was about caching issues.

  24. Rajat says

    Thank you for the blog… This saved a lot of headache for me and helped me to solve my missing admin bar problem.

  25. Cara says

    HELP! I can’t figure out what in the world is wrong with this theme… I’m mostly just changing the CSS, as it’s a theme that I’ve built and used on other WordPress sites before without problems. The and are in the right places. I checked to see if this problem existed with the other pre-installed themes and it is! So I thought maybe plugins… I deactivated, then deleted all my plugins. Nothing. I’m out of luck and don’t have a clue what to do now. Any ideas? Thanks!

  26. Christine says

    Genius. Just making sure the box was checked worked for me! It was strange because it has been working perfectly and it suddenly stopped, but really happy you showed me where to look first!

  27. Jan vD says

    Had the same problem, tried a lot of suggestions, but them I found out there war a white line in the header. Removing the white line did the job.

  28. Chukwuma says

    Hello, thanks a lot for making this post, but unfortunately in my own case the admin bar shows for only users with admin roles. Users with roles such as shop manager do not see the admin bar at the front end, but they see the admin bar at the back end. Is there a possible solution for this fix?

  29. Redrambles says

    Also helpful would be to mention that you can deactivate your plugins by renaming the folders in your plugins folder, via FTP. (I usually put an underscore at the beginning of the name, such as ‘_akismet’).

    The ‘disappearing admin bar’ happened to me recently and I was unable to log into the dashboard with the ‘wp-admin’ suffix in the url. I deactivated the site’s plugins via FTP and was able to get back in the dashboard to do the rest.

返信を残す

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