Is Your WordPress Admin Bar Missing?

Recently, I’ve found myself typing “why is the black stripe across the top of my homepage missing?” twice! And because I wasn’t sure what the thing was called, it took me a minute to find what I was looking for.

If you’re having that issue, it’s a simple fix. Just plop the code below into the functions.php file found in the WordPress theme file editor (hidden in appearance on your WordPress dashboard sidebar).

***Warning: It is better to create a child theme instead of editing your theme files.***


add_filter( 'show_admin_bar', '__return_true' );

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)