Admin Bar Missing From WordPress Website Front End

February 12th, 2013 - Posted by Steve Marks to (X)HTML / CSS, PHP, Web Development.

If you’ve worked with WordPress before you’ll know that when logged into a WordPress back-end, a bar will appear at the top of the website when viewing the public facing site. The admin bar allows the logged in user quick access to perform common tasks and looks omething like so:

Wordpress Admin Bar

Whilst recently building a new WordPress theme I ran into a situation where the website appeared fine, but I had a blank area where the admin bar should have been appearing.

The Solution

Fortunately the fix was an easy one. The problem was the result of the functions wp_head() or wp_footer() missing from header.php or footer.php respectively in the theme files. After ensuring that these two functions were present the admin bar appeared as expected.

This entry was posted on Tuesday, February 12th, 2013 at 1:31 pm by +Steve Marks and is filed under (X)HTML / CSS, PHP, Web Development. You can follow any responses to this entry through the RSS 2.0 feed.

Fear not, we won't publish this

Comments (0)

No comments have been left yet. Be the first