Last Updated On By Khizer Ali
Many users report that admin bar is not showing on their WordPress side. Admin bar is shortcut area with a grayish background that is present on the top of the page when you are logged in to your WordPress website. It contains some useful links like add a new post, edit page, go to the dashboard and edit your profile.
In some of the cases, it happens that the admin bar is not appearing on the front end. It could happen because of some possible reasons which we are going to discuss here.
Before we try to get our admin bar back, we just want to double-check that we’re definitely logged in to our WordPress site. I know this seems obvious, but it’s absolutely something worth checking. So, we are just going to add /wp-admin after domain name and press enter to visit the dashboard. If it brings us to the login page instead, we just need to login, and we’ll probably find that the admin bar comes back.
Table of Contents
If we are already logged in, then we hover over Users on the left side and then click on your profile.
Here we just need to double-check that the Show Toolbar when viewing your site option is checked, and if it’s not, we need to check the box and save our changes. Next, when we visit our site and refresh the page, we would see that our admin bar comes back.
If the above solution didn’t work for you because that option is already checked, then the next thing we’re going to do is delete the cookies and caches files from our internet browser. To see if this is the problem occurring, we observe that most of the time it is. So, to do this on Google Chrome, we just need to click the three dots in the top right corner to open up options, then we can hover over history and click history at the top.
Now we can click Clear browsing
data on the left and then we are going to make sure that cookies and cached files are both checked. After that we just need to click the Clear data button at the bottom and
we’re done successfully.
Note: If you are using a different browser, you can do a quick Google search for instructions on how to delete the cookies and cached files.
For this, you just need to install and activate the free W3 total cache plugin.
Once we’ve activated the plugin, we hover over performance on the admin bar at the top and click Purge All Caches. This should finally fix the problem, and when we visit our site, we should find our admin bar is back to normal.
If all of the above solutions didn’t work for you, then there is one more last possible way to do this. We need to check our header.php and footer.php files in our theme. You can locate these files like this xampp -> htdocs -> wordpress -> wp-content -> themes -> Your_current_theme_name. In this folder, you can find the files. First open the header.php file and should be there before the closing of the head tag. If is it is not there then kindly add this line.
Next, in the footer.php file add before the closing of the body tag. Now go back to the site and refresh it.
The WordPress admin bar is sort of a short cut area that allows you to access the back-end functionalities when you are on the front-end of your website. Missing the Admin bar in WordPress might occur due to various reasons. In this article, we tried to cover the most common reasons behind the issue and successful ways to overcome the concern. Hope this would bring ease in your work in the future. Good Luck!