WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Themes» How to Fix Missing Admin Bar Issue in WordPress

How to Fix Missing Admin Bar Issue in WordPress

Last updated on December 29th, 2014 by Editorial Staff
33 Shares
Share
Tweet
Share
Pin
Special WordPress Hosting offer for WPBeginner Readers
How to Fix Missing Admin Bar Issue in WordPress

Recently, one of our users reported that they are missing the admin bar on their WordPress site, and asked for our help. The admin bar is a floating bar that appears on every page of your site when you are logged in. It contains some useful shortcuts to different sections of the WordPress admin area. In this article, we will show you how to fix the missing admin bar issue in WordPress.

Normal and Missing Admin Bar Examples

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Why Missing Admin Bar Issue Occur?

Usually this happens when a plugin or an active theme is not allowing WordPress to properly execute the code in the footer area of your website. This code is triggered with the function <?php wp_footer(); ?>.

When a theme is missing this code, or a plugin does something that messes it up, then you will end up with a missing WordPress admin bar issue.

Fixing the Missing Admin Bar

The most common culprit causing this problem is a missing <?php wp_footer(); ?> line in your theme. This function is usually found in a theme’s footer.php file just before the </body> tag.

Before you do anything to fix it, make sure you create complete WordPress backup or at least backup your theme files.

Connect to your website using an FTP program like Filezilla, or use the File Manager in your web hosting account’s cPanel dashboard.

Next, go to your theme folder which is located inside /wp-content/theme/ folder and download a copy of your theme’s folder to your Desktop as backup.

You would need to locate the footer.php file inside your theme folder and scroll down to the end of the file to see if you have <?php wp_footer(); ?> line before the </body> tag.

If you do not have this line, then you need to add it and then upload the changed file back to your server.

If you are using a child theme and your child theme does not have a footer.php file, then you need to check the parent theme’s footer.php file to locate the wp_footer function.

If adding the wp_footer() function to your theme does not solve the missing admin bar issue for you, then don’t worry there are other things you can do to troubleshoot this error.

Troubleshooting

Temporarily switch back to a default theme. Sometimes you may see wp_footer function in your theme files, but the admin bar still might not work. In this case, you need to switch to a default theme to make sure that your current theme is not causing this issue.

A poorly coded plugin can cause this error as well, so to check if a plugin has caused this issue, you need to deactivate all plugins on your WordPress site. If this resolves your problem, then this means that there was a plugin that caused this issue.

Now you need to figure out which plugin caused this issue. You can do this by reactivating your plugins one by one until you find the plugin that caused the issue.

Lastly, you can turn the debugging on by opening wp-config.php file and changing define('WP_DEBUG', false); to define('WP_DEBUG', true);. WordPress will now show you warnings and notices that were previously hidden. These warnings and notices can hint towards the file causing this issue.

That’s all, we hope this article helped you fix missing admin bar issue in WordPress. You may also want to check out our guide What everybody ought to know about the WordPress admin bar.

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

33 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

50 Comments

Leave a Reply
  1. Malo says:
    Oct 8, 2019 at 10:42 pm

    Thank you !! it worked on the first try.

    Reply
    • WPBeginner Support says:
      Oct 9, 2019 at 10:05 am

      Glad our recommendation was helpful :)

      Reply
  2. Joshua says:
    Jul 15, 2019 at 7:38 pm

    I had to re activate the default theme then switch it back and it solved my issue.

    Reply
    • WPBeginner Support says:
      Jul 16, 2019 at 10:44 am

      Thanks for sharing what solved the issue for you :)

      Reply
  3. Michael G. Brattland says:
    Apr 4, 2019 at 6:46 pm

    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.

    Reply
    • WPBeginner Support says:
      Apr 5, 2019 at 11:10 am

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

      Reply
  4. Fatima says:
    Dec 10, 2018 at 6:48 am

    Thanks! it Worked!

    Reply
  5. Tim Helmer says:
    Nov 21, 2018 at 5:28 pm

    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

    Reply
  6. Okereke Divine says:
    Nov 18, 2018 at 4:02 pm

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

    Reply
  7. Cory says:
    Feb 12, 2018 at 4:30 pm

    Thank you so much for the quick answer.

    Reply
  8. Kaleel says:
    Dec 13, 2017 at 9:42 am

    Perfect Solution :)

    Reply
  9. Harry W says:
    Oct 19, 2017 at 11:18 am

    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.

    Reply
    • Federico Mastrianni says:
      Oct 30, 2018 at 4:55 pm

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

      Reply
  10. Deepak says:
    Sep 27, 2017 at 2:56 pm

    Thanks alot. You saved my day (y)

    Reply
  11. Ayoola Adesoye says:
    Sep 9, 2017 at 6:06 pm

    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.,

    Reply
  12. Ionut says:
    Aug 23, 2017 at 5:33 am

    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

    Reply
    • SiGa says:
      Dec 30, 2017 at 8:05 am

      @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!

      Reply
  13. Pharid Ali says:
    Aug 14, 2017 at 2:42 am

    It’s Working..

    Thank you..

    Reply
    • Omar says:
      Aug 27, 2017 at 7:42 am

      how you make it i tried several times and i can’t solve it, could you plz help me

      Reply
  14. Chris says:
    Aug 5, 2017 at 1:18 pm

    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

    Reply
  15. Arech Lim says:
    Aug 2, 2017 at 10:20 pm

    Just add another user account it was the easiest way to solve the problem.

    Reply
    • Eddie P says:
      Jun 15, 2018 at 5:29 pm

      That was so easy. Thank you

      Reply
  16. sadatia says:
    Jun 6, 2017 at 1:14 am

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

    Reply
  17. Arinze Prince says:
    Jun 3, 2017 at 6:07 am

    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!

    Reply
  18. Fernando Santos says:
    May 17, 2017 at 9:22 am

    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!

    Reply
    • Raphael says:
      Sep 19, 2017 at 1:48 pm

      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!

      Reply
    • Paul says:
      Jan 3, 2018 at 6:20 pm

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

      Thank you for this. Duly noted this fix!

      Reply
  19. Michael Warren says:
    Apr 29, 2017 at 3:56 pm

    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.

    Reply
  20. Mesh says:
    Apr 3, 2017 at 4:02 am

    Perfect solution…just what i was looking for..thanks very much for this post

    Reply
  21. Silver Knight (Greg) says:
    Mar 2, 2017 at 1:58 pm

    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

    Reply
  22. Behdad Lotf says:
    Feb 22, 2017 at 5:52 pm

    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?

    Reply
  23. korkiat says:
    Feb 9, 2017 at 5:10 am

    Thank You.

    Reply
  24. Wayan Adika says:
    Feb 6, 2017 at 12:00 pm

    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

    Reply
  25. Terry says:
    Dec 31, 2016 at 4:35 pm

    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.

    Reply
  26. santanu chowdhury says:
    Dec 4, 2016 at 1:55 pm

    Thanks for this tutorial…

    Reply
  27. John O'Brien says:
    Nov 20, 2016 at 11:20 am

    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?

    Reply
  28. Andre says:
    Nov 16, 2016 at 6:01 pm

    I just changed to the parent theme again and it worked. Worth to try changing themes.

    Reply
  29. pete says:
    May 13, 2016 at 6:41 am

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

    Reply
  30. Hajrullah says:
    Mar 29, 2016 at 9:42 am

    Thank you for your simply solution you da best

    Reply
  31. Rajat says:
    Mar 11, 2016 at 5:01 am

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

    Reply
  32. Cara says:
    Jan 4, 2016 at 8:15 pm

    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!

    Reply
  33. Lee says:
    Sep 6, 2015 at 1:16 pm

    After many hours of losing my mind I fixed it : ) stupid wp_footer() xD

    Reply
  34. Christine says:
    Jun 29, 2015 at 10:22 am

    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!

    Reply
  35. emeka says:
    Jun 18, 2015 at 1:32 pm

    worked like a charm…you are the best!

    Reply
  36. Jan vD says:
    Mar 21, 2015 at 9:28 am

    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.

    Reply
  37. Chukwuma says:
    Mar 9, 2015 at 1:30 pm

    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?

    Reply
  38. RaMGoN GaLLaGHeR says:
    Dec 2, 2014 at 9:24 am

    Hello,thanks, I resolve this problem in Dashboard> user perfil > Admin Bar > see admin bar

    Reply
    • shams says:
      Dec 18, 2015 at 1:22 pm

      Thanks @RAMGON GALLAGHER

      Reply
    • Lenyman says:
      Aug 31, 2017 at 2:37 am

      Worked for me! Thanks.

      Reply
  39. Redrambles says:
    Nov 30, 2014 at 1:59 pm

    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.

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WPForms Logo
WPForms
Drag & Drop WordPress Form Builder Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2019 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2019)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2019)
    • SiteGround Reviews from 1032 Users & Our Experts (2019)
    • Bluehost Review from Real Users + Performance Stats (2019)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • 7 Best CRM Software for Small Businesses (Compared)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2019 – Step by Step Guide
Deals & Coupons (view all)
WPEngine
WP Engine Coupon
Get 20% OFF on all WP Engine hosting plans or 4 months free on annual payment.
Visual Composer
Visual Composer Coupon
Get 20% OFF on Visual Composer WordPress page builder plugin.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress

Copyright © 2009 - 2019 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.