Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Coppa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Come risolvere il problema della barra amministrativa mancante in WordPress (3 modi)

Volete risolvere il problema della barra di amministrazione mancante in WordPress?

La barra di amministrazione è una barra fluttuante che appare su ogni pagina del vostro sito web quando siete connessi. Presenta utili scorciatoie che consentono di accedere a diverse sezioni dell’area di amministrazione di WordPress.

In questo articolo vi mostreremo come risolvere il problema della barra di amministrazione di WordPress mancante, passo dopo passo.

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

Qual è il problema della barra di amministrazione mancante di WordPress?

Nella maggior parte dei siti web WordPress, la barra di amministrazione si trova sempre nella parte superiore dello schermo quando si effettua l’accesso. Tuttavia, quando gli utenti riscontrano il problema della barra di amministrazione mancante, questa viene sostituita da una barra bianca nella parte superiore dello schermo.

Questo può essere molto scomodo, in quanto è necessario accedere al pannello di amministrazione di WordPress (WP admin) ogni volta che si desidera modificare i post e le pagine, rispondere ai commenti, modificare le impostazioni dei plugin e compiere altre azioni. Ciò significa che gli utenti che hanno effettuato l’accesso non possono fare facilmente le cose dal front-end del vostro sito web.

Il problema della barra di amministrazione mancante è solitamente causato da temi mal codificati, conflitti di plugin e profili utente non impostati nel modo giusto.

Detto questo, diamo un’occhiata ad alcuni modi per correggere il problema della barra di amministrazione mancante sul vostro sito. Utilizzate i link rapidi qui sotto per andare direttamente al metodo che desiderate provare:

Metodo 1: Risolvere la barra amministrativa mancante controllando le impostazioni del profilo utente

Una delle soluzioni più semplici per risolvere il problema della barra di amministrazione di WordPress consiste nel controllare le impostazioni del profilo utente di WordPress. Esiste un’impostazione che consente di disattivare la barra di amministrazione per utenti specifici.

Potrebbe essere stato disattivato per errore o disabilitato da un altro utente sul vostro sito web.

Per verificarlo, basta andare su Utenti ” Profilo nel pannello di amministrazione di WordPress e individuare l’opzione “Barra degli strumenti”.

Show toolbar in user profile

È necessario assicurarsi che la casella “Mostra la barra degli strumenti durante la visualizzazione del sito” sia selezionata.

Quindi, fare clic sul pulsante “Aggiorna profilo” in fondo alla pagina per salvare le impostazioni.

Metodo 2: Risolvere la barra di amministrazione mancante controllando i file del tema di WordPress

Un’altra ragione comune per la mancanza della barra di amministrazione è quando il tema di WordPress manca della funzione wp_footer.

Per prima cosa, è necessario tornare a un tema predefinito. In questo modo sarà possibile verificare se il problema è causato dal tema attuale.

Basta andare su Aspetto ” Temi nella dashboard di WordPress, passare il mouse su una delle opzioni del tema predefinito e fare clic su “Attiva”.

Activate new WordPress theme

Se viene visualizzata la barra di amministrazione, allora si sa che c’è un problema con il tema WordPress esistente.

A questo punto, tornate al vostro tema originale e create un backup completo di WordPress, in modo da poter ripristinare il vostro sito se qualcosa dovesse andare storto.

Dopodiché, dovete collegarvi al vostro sito WordPress utilizzando un client SFTP/FTP o l’applicazione File Manager nella dashboard del vostro account di hosting WordPress.

Per maggiori dettagli, potete consultare la nostra guida per principianti su come usare l’FTP per caricare i file su WordPress.

Quindi, andare nella cartella del tema del sito web, che si trova all’interno di wp-content/themes/nome del vostro tema, e trovare un file chiamato footer.php.

Open theme folder footer.php file

Dopodiché, è necessario aprire il file nell’editor di testo preferito e scorrere fino alla fine del file per vedere se è presente questo codice prima del tag di chiusura <body>:

<?php wp_footer(); ?>

Se non si dispone di questo, è necessario aggiungere il codice e caricare il file salvato sul server.

Controllo del file Functions.php per le righe di codice aggiunte

Un’altra ragione per l’errore di barra di amministrazione mancante è che viene nascosta dal file functions.php del tema. Questo frammento di codice potrebbe essere stato aggiunto dallo sviluppatore del tema.

Per correggere questo problema, è necessario aprire il file functions.php, cercare il seguente frammento di codice nel file ed eliminarlo.

add_filter( 'show_admin_bar', '__return_false' );

Dopodiché, è sufficiente salvare il file e caricarlo nella cartella dei temi del sito web.

Metodo 3: Risolvere la barra di amministrazione mancante controllando i problemi dei plugin di WordPress

Anche un conflitto tra plugin o un plugin mal codificato potrebbe essere la causa del problema della barra di amministrazione mancante in WordPress.

Per prima cosa, è necessario capire quale sia il plugin che causa il problema. A tale scopo, navigare su Plugin ” Plugin installati per raggiungere la pagina dei plugin attivi.

Successivamente, è necessario selezionare tutti i plugin, quindi selezionare “Disattiva” dal menu a discesa “Azioni in blocco”.

Deactivate all plugins

Quindi, fare clic sul pulsante “Applica” per disattivare tutti i plugin.

Dopodiché, si può andare avanti uno per uno e fare clic sul pulsante “Attiva” sotto ogni plugin.

Activate plugin one by one

Se attivate un plugin e questo causa la scomparsa della barra di amministrazione, dovete disattivarlo e trovare un sostituto. Per ulteriori idee, consultate il nostro elenco dei plugin WordPress indispensabili per i siti web aziendali.

Infine, un altro problema potrebbe causare la scomparsa della barra di amministrazione. Se nessuna delle soluzioni precedenti ha funzionato, è possibile attivare il debug, in modo che WordPress mostri gli avvisi e le notifiche che prima erano nascosti.

Per farlo, è necessario aprire il filewp-config.php e individuare la riga di codice che dice:

define('WP_DEBUG', false); 

Quindi, è necessario cambiare ‘false’ in ‘true’.

In questo modo si otterranno indizi sulla causa del problema, in modo da poter risolvere il problema con WordPress.

Per maggiori dettagli, consultate la nostra guida per principianti alla risoluzione degli errori di WordPress.

Bonus: ottenere l’aiuto di servizi professionali di manutenzione e assistenza per WordPress

Se riscontrate problemi costanti sul vostro sito web WordPress o siete stufi di eseguire operazioni di manutenzione generale, potrebbe essere il momento di rivolgersi a dei professionisti.

I servizi di manutenzione di WordPress possono occuparsi di tutto, dagli aggiornamenti normali ai backup e alla risoluzione degli errori. Ad esempio, con i servizi di manutenzione di WPBeginner, avrete accesso all’assistenza 24 ore su 24, 7 giorni su 7, al monitoraggio dei tempi di attività, alla rimozione del malware e altro ancora.

WPBeginner Pro Maintenance Services

Speriamo che questo articolo vi abbia aiutato a correggere il problema “La barra di amministrazione di WordPress non viene visualizzata”. Potreste anche consultare la nostra guida su come add-on un centro notifiche nell’amministrazione di WordPress o la nostra guida completa agli errori di WordPress.

Se questo articolo vi è piaciuto, iscrivetevi al nostro canale YouTube per le esercitazioni video su WordPress. Potete trovarci anche su Twitter e Facebook.

Divulgazione: I nostri contenuti sono sostenuti dai lettori. Ciò significa che se cliccate su alcuni dei nostri link, potremmo guadagnare una commissione. Vedi come WPBeginner è finanziato , perché è importante e come puoi sostenerci. Ecco il nostro processo editoriale .

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.

Il kit di strumenti WordPress definitivo

Ottenete l'accesso gratuito al nostro kit di strumenti - una raccolta di prodotti e risorse relative a WordPress che ogni professionista dovrebbe avere!

Reader Interactions

70 commentiLascia una risposta

  1. Syed Balkhi

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

    Method 3 Worked ! “Simple event planner” plugin was causing the issues, thanks a lot.

    • WPBeginner Support

      You’re welcome, glad our guide could help :)

      Admin

  3. photoMaldives

    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

      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 :)

      Admin

  4. Elliott Rodgers

    Brilliant! Probably saved me hours of work. At least taught me something new.

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  5. Sam

    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.

  6. Clint D.

    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.

    • WPBeginner Support

      Thanks for sharing this should someone else run into a similar issue :)

      Admin

  7. Carsten Legaard

    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?

    • WPBeginner Support

      You may want to check in your user settings to see if it is disabled there.

      Admin

  8. Sarah Delta T

    Work !!! Thanks :)

    • WPBeginner Support

      Glad our guide was helpful :)

      Admin

  9. Eszter

    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!

    • WPBeginner Support

      Glad you were able to find the issue and thanks for sharing your solution

      Admin

    • Dora

      Thank you, Eszter! This solved the issue for me.

  10. andy

    this man deserves a medal

  11. Malo

    Thank you !! it worked on the first try.

    • WPBeginner Support

      Glad our recommendation was helpful :)

      Admin

  12. Joshua

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

    • WPBeginner Support

      Thanks for sharing what solved the issue for you :)

      Admin

  13. Michael G. Brattland

    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

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

      Admin

  14. Tim Helmer

    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

  15. Okereke Divine

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

  16. Cory

    Thank you so much for the quick answer.

  17. Harry W

    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

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

  18. Deepak

    Thanks alot. You saved my day (y)

  19. Ayoola Adesoye

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

  20. Ionut

    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

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

    • Todd

      That worked for me too. Thank you.

  21. Pharid Ali

    It’s Working..

    Thank you..

    • Omar

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

  22. Chris

    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

  23. Arech Lim

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

    • Eddie P

      That was so easy. Thank you

  24. sadatia

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

  25. Arinze Prince

    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!

  26. Fernando Santos

    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

      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

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

      Thank you for this. Duly noted this fix!

    • JohnSmith

      This worked for me as well, although I changed the http to https.

  27. Michael Warren

    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.

  28. Mesh

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

  29. Silver Knight (Greg)

    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

  30. Behdad Lotf

    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?

  31. Wayan Adika

    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

  32. Terry

    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.

  33. santanu chowdhury

    Thanks for this tutorial…

  34. John O'Brien

    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?

  35. Andre

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

  36. pete

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

  37. Hajrullah

    Thank you for your simply solution you da best

  38. Rajat

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

  39. Cara

    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!

  40. Lee

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

  41. Christine

    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!

  42. emeka

    worked like a charm…you are the best!

  43. Jan vD

    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.

  44. Chukwuma

    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?

    • shams

      Thanks @RAMGON GALLAGHER

    • Lenyman

      Worked for me! Thanks.

  45. Redrambles

    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.

Lascia una risposta

Grazie per aver scelto di lasciare un commento. Tenga presente che tutti i commenti sono moderati in base alle nostre politica dei commenti e il suo indirizzo e-mail NON sarà pubblicato. Si prega di NON utilizzare parole chiave nel campo del nome. Avremo una conversazione personale e significativa.