Admin bar missing on front side pages
-
On my website, http://www.deepsoft.com/ the admin bar is missing on the front side pages. It is fine on the back end pages (dashboard, etc.). I am using a custom theme (much hacked). I am not sure what the problem is. It does leave a space for the bar, but it is just white space. Is there something I should check for in my theme code that would cause this problem?
My header.php file looks like this:
[Code moderated as per the Forum Rules. Please use the pastebin]
-
Quick check – Switch to the Twenty Ten theme and see if it works.
If it does work with twentyten, your theme is probably missing one or both snippets of code required
wp_head in header.php
wp_footer in footer.phpI switched to Twenty Ten theme and the admin bar shows up. Obviously there is something wrong in my theme code. What should I be looking for? I searched the code (both the .php files and the .css files) of some other themes on other sites I manage (they all use ‘stock’ public themes) where the admin bar is working and it doesn’t *look* like anything is missing (I did a few fixes to match the other themes’ header.php files (class for the body tag, use/ordering of the various header… divs, etc.), but that did not help. I fiddled with the style.css file, in case something there was being fishy, but no help there either.
Fixed! I add added wp_footer to my footer.php and it works now. Thanks!
my link above has it all for ya
I would suspect
<?php wp_footer(); ?>is missing, above the </body> tagEDIT: I see ya got it, cool!
Most likely wp_footer is missing from footer.php. If it is, try adding
<?php wp_footer();>to that file just before<?body></html>.This was what fixed my missing adming header – thank you.
The topic ‘Admin bar missing on front side pages’ is closed to new replies.