Wordpress admin panel does not appear on interface

I tried everything I found, but nothing helps me.

I put

<?php wp_head(); ?> 

in header.php

and

 <?php wp_footer(); ?> 

I even tried:

  • Disable all plugins
  • WP default theme
  • etc.
+11
source share
7 answers

The decision to put show_admin_bar(true); on top of your functions.php file.

UPDATE fix: Set to show only when the user is logged in:

 if (is_user_logged_in()) { show_admin_bar(true); } 
+1
source

Some custom Wordpress theme does not display an admin panel on a theme page similar to wp_head (), and wp_footer () is written in template files. To solve this problem, simply add the following code to your functions.php file or to 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 helps ...

+28
source

If you had a panel showing earlier, you can try this super-easy fix (worked for me):

  • Go to your profile in WP Admin.
  • Check if the "Show toolbar when viewing the site" is checked.
  • If not, select this and save ... which should fix it.
  • If the IS option is checked, deselect and save. Then select it again and save.

Now let's look at the interface. I did this, and he fixed everything that was, without being confused with any of the files.

+4
source

I managed to do it again by adding

 <?php wp_footer(); ?> 

in "header.php" after the </header> .

One important thing is to clear the cache ( check if you have the cache plugin installed for Wordpress, such as WP Super Cache or LiteSpeed ​​Cache ... ), and then press CTRL + F5 to refresh the page.

+3
source

Try disabling the plugin cache or disabling for registered users. I had a similar problem using WP Fastest Cache. Just disabled chache for registered users and works.

+2
source

If all else fails, try deleting all cookies. He works.

+1
source

@ Chen-Tsu Lin Thank you! I tried everything - I searched the entire network - nothing worked until I found this advice - I added my code to my blackfyre function.php theme and now it works! I really suggest this - THANKS!

-2
source

All Articles