Long ago, I disabled the dark WordPress admin bar that shows up at the top of the screen when I’m logged in and looking at the front end of the site.
Anyway, I decided I wanted it back just now – but when I went to re-enable it (Users>Your Profile>Show Toolbar when viewing site), the checkbox was already ticked!
So I tried adding show_admin_bar(true);
to my functions.php file, but it made absolutely no difference.
I googled it and found out that I hadn’t included wp_footer() anywhere in my theme. I added it to footer.php, and voila! The admin bar returned.
Easy as that!