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

Como corrigir o problema da barra de administração ausente no WordPress (3 maneiras)

Está procurando corrigir o problema da falta da barra de administração no WordPress?

A barra de administração é uma barra flutuante que aparece em todas as páginas do seu site quando você está conectado. Ela tem atalhos úteis que o levam a diferentes seções da área de administração do WordPress.

Neste artigo, mostraremos como você pode corrigir o problema da falta da barra de administração do WordPress, passo a passo.

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

O que é o problema da barra de administração ausente no WordPress?

Na maioria dos sites WordPress, a barra de administração está sempre na parte superior da tela quando você está conectado. No entanto, quando os usuários estiverem enfrentando o problema da barra de administração ausente, ela será substituída por uma barra branca na parte superior da tela.

Isso pode ser muito inconveniente, pois você precisa acessar o painel de administração do WordPress (WP admin) sempre que quiser editar posts e páginas, responder a comentários, alterar configurações de plugins e realizar outras ações. Isso significa que os usuários conectados não podem fazer coisas facilmente no front-end do seu site.

O problema da falta da barra de administração geralmente é causado por temas mal codificados, conflitos de plug-ins e perfis de usuário que não estão configurados da maneira correta.

Dito isso, vamos dar uma olhada em algumas maneiras de corrigir o problema da falta da barra de administração no seu site. Basta usar os links rápidos abaixo para ir direto ao método que você deseja experimentar:

Método 1: Corrigir a falta da barra de administração verificando as configurações do perfil do usuário

Uma das correções mais fáceis para o problema da barra de administração do WordPress é verificar as configurações do perfil do usuário do WordPress. Há uma configuração que permite desativar a barra de administração para usuários específicos.

Isso pode ter sido desativado por engano ou desativado por outro usuário em seu site.

Para verificar isso, basta acessar Usuários ” Perfil no painel de administração do WordPress e localizar a opção “Barra de ferramentas”.

Show toolbar in user profile

Você precisa se certificar de que a caixa “Mostrar barra de ferramentas ao visualizar o site” esteja marcada.

Em seguida, clique no botão “Update Profile” (Atualizar perfil) na parte inferior da página para salvar suas configurações.

Método 2: Corrigir a barra de administração ausente verificando os arquivos do tema do WordPress

Outro motivo comum para a falta da barra de administração é quando seu tema do WordPress não tem a função wp_footer.

Primeiro, você deve voltar a usar um tema padrão. Isso o ajudará a verificar se o tema atual está causando o problema.

Basta acessar Appearance ” Themes (Aparência ” Temas ) no painel do WordPress, passar o mouse sobre uma das opções de tema padrão e clicar em “Activate” (Ativar).

Activate new WordPress theme

Se a barra de administração aparecer, você saberá que há um problema com o tema existente do WordPress.

Agora, volte para o tema original e crie um backup completo do WordPress para que você possa restaurar seu site se algo der errado.

Depois disso, você deve se conectar ao seu site WordPress usando um cliente SFTP/FTP ou o aplicativo File Manager no painel da sua conta de hospedagem WordPress.

Para obter mais detalhes, consulte nosso guia para iniciantes sobre como usar o FTP para fazer upload de arquivos no WordPress.

Em seguida, vá para a pasta do tema do seu site, que está localizada dentro de wp-content/themes/your-theme-name, e localize um arquivo chamado footer.php.

Open theme folder footer.php file

Depois disso, você precisa abrir o arquivo no editor de texto de sua preferência e rolar até o final do arquivo para ver se há esse código antes da tag de fechamento <body>:

<?php wp_footer(); ?>

Se você não tiver isso, precisará adicionar o código e fazer upload do arquivo salvo de volta para o servidor.

Verificação do arquivo Functions.php quanto à linha de código adicionada

Outro motivo para o erro da barra de administração ausente é que ela está sendo ocultada pelo arquivo functions.php do seu tema. Esse trecho de código pode ter sido adicionado pelo desenvolvedor do tema.

Para corrigir isso, você precisa abrir o arquivo functions.php, procurar o seguinte trecho de código no arquivo e excluí-lo.

add_filter( 'show_admin_bar', '__return_false' );

Depois disso, basta salvar o arquivo e carregá-lo novamente na pasta de temas do seu site.

Método 3: Corrigir a falta da barra de administração verificando se há problemas com o plug-in do WordPress

Um conflito de plugins ou um plugin mal codificado também pode estar causando o problema da falta da barra de administração no WordPress.

Primeiro, você precisa descobrir qual plug-in está causando o problema. Para fazer isso, navegue até Plugins ” Plugins instalados para acessar a página de plugins ativos.

Em seguida, você precisa selecionar todos os plug-ins e, depois, selecionar “Deactivate” (Desativar) no menu suspenso “Bulk Actions” (Ações em massa).

Deactivate all plugins

Em seguida, clique no botão “Apply” (Aplicar) para desativar todos os plug-ins.

Depois disso, você pode ir um a um e clicar no botão “Activate” (Ativar) abaixo de cada plug-in.

Activate plugin one by one

Se você ativar um plug-in e ele fizer com que a barra de administração desapareça, será necessário desativá-lo e encontrar um substituto. Para obter mais ideias, consulte nossa lista dos plug-ins obrigatórios do WordPress para sites comerciais.

Por fim, outro problema pode estar causando o desaparecimento da barra de administração. Se nenhuma das soluções acima funcionou, você pode ativar a depuração para que o WordPress mostre avisos e notificações que estavam ocultos antes.

Para fazer isso, você precisa abrir o arquivowp-config.php e localizar a linha de código que diz:

define('WP_DEBUG', false); 

Em seguida, você precisa alterar o “falso” para “verdadeiro”.

Isso lhe dará pistas sobre o que está causando o problema, para que você possa solucionar o problema com o WordPress.

Para obter mais detalhes, consulte nosso guia para iniciantes sobre solução de erros do WordPress.

Bônus: obtenha ajuda de serviços profissionais de manutenção e suporte do WordPress

Se você está constantemente enfrentando problemas em seu site WordPress ou está cansado de fazer tarefas gerais de manutenção, talvez seja hora de chamar os profissionais.

Os serviços de manutenção do WordPress podem cuidar de tudo, desde atualizações regulares até backups e solução de problemas de erros. Por exemplo, com os serviços de manutenção do WPBeginner, você terá acesso a suporte 24 horas por dia, 7 dias por semana, monitoramento do tempo de atividade, remoção de malware e muito mais.

WPBeginner Pro Maintenance Services

Recursos adicionais para a barra de administração do WordPress

Se precisar de mais ajuda com a barra de administração do WordPress, aqui estão alguns outros tutoriais que você pode consultar:

Esperamos que este artigo tenha ajudado você a corrigir o problema da “barra de administração do WordPress não exibida”. Talvez você também queira ver nosso guia sobre como adicionar um centro de notificação no administrador do WordPress ou nosso guia completo sobre erros do WordPress.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

69 ComentáriosLeave a Reply

  1. 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!

    • 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

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

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

  4. 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?

  5. 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!

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

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

      Admin

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

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

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

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

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

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

  13. 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!

  14. 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!

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

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

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

  17. 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?

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

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

  20. 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?

  21. 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!

  22. 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!

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

  24. 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?

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

Leave A 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.