Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress admin bar not showing on frontend

Tags:

wordpress

I've tried everything I have found but nothing helps me.

I've put

<?php wp_head(); ?>

in header.php

and

<?php wp_footer(); ?>

I even tried:

  1. Disable all plugins
  2. Default WP theme
  3. and etc.
like image 279
iWizard Avatar asked Jan 22 '14 07:01

iWizard


People also ask

How do I show my WordPress admin bar?

Remember, the WordPress Admin Bar is only visible to you when you're logged in to your site. To turn off this view, click the Edit my Profile link. Now, from this screen, you'll see a check box to Show Toolbar when viewing site.

How do I hide the top admin frontend bar in WordPress?

You can hide the admin bar for specific users from the dashboard. Go to Users → All Users. Select the user you want to hide the admin bar for. Uncheck the Show Toolbar when viewing site option and save changes.

Why can't I see the Appearance tab in WordPress?

If you do not see the Appearance tab on the left side of your WordPress dashboard after logging in, it is likely you have not installed the WordPress platform on your server.

How to fix missing admin bar in WordPress site?

You need to make sure the box that says ‘Show Toolbar when viewing site’ is checked. Then, click the ‘Update Profile’ button at the bottom of the page to save your settings. Method 2. Fix Missing Admin Bar By Checking WordPress Theme Files

How to fix WordPress toolbar not working when viewing site?

To check this, simply go to Users » Profile in your WordPress admin panel and then locate the ‘Toolbar’ option. You need to make sure the box that says ‘Show Toolbar when viewing site’ is checked. Then, click the ‘Update Profile’ button at the bottom of the page to save your settings. Method 2.

Why is my admin bar not showing up?

The missing admin bar issue is usually caused by poorly coded themes, plugin conflicts, and user profiles that aren’t setup the right way. With that said, let’s take a look at a few ways you can fix the missing admin bar issue on your site. Simply use the quick links below to go straight to the method you want to try. Method 1.

Why can’t I see the Admin bar in the WP_footer () function?

They put the wp_footer () and wp_head () functions and refresh and still do not see the admin bar. And it is because they have forgot to log in to /wp-admin/


2 Answers

Some custom wordpress theme doesn't show the admin bar into the theme page same with the wp_head() and the wp_footer() wrote on the templates files. To resolve that problem just add the following code into your function.php or into your own plugin:

function admin_bar(){

  if(is_user_logged_in()){
    add_filter( 'show_admin_bar', '__return_true' , 1000 );
  }
}
add_action('init', 'admin_bar' );

Hope that help...

like image 147
nikky Avatar answered Sep 20 '22 13:09

nikky


If you had the bar showing previously, you might try this super-easy fix (worked for me):

  1. Go to your profile in WP Admin
  2. Check to see if "Show Toolbar when viewing site" is checked
  3. If not, select this and save … that should fix it
  4. If the option IS checked, deselect it and save. Then, select it again and save.

Now have another look at the frontend. I did this and it fixed whatever the issue was without messing with any of the files.

like image 44
Mark P Avatar answered Sep 17 '22 13:09

Mark P