Forums

[resolved] Admin bar missing on front side pages (8 posts)

  1. RobertPHeller
    Member
    Posted 1 year ago #

    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]

  2. Quick check - Switch to the Twenty Ten theme and see if it works.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    http://voodoopress.com/2011/02/wordpress-3-1-admin-bar-upgrade-issues/

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

  4. RobertPHeller
    Member
    Posted 1 year ago #

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

  5. RobertPHeller
    Member
    Posted 1 year ago #

    Fixed! I add added wp_footer to my footer.php and it works now. Thanks!

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    my link above has it all for ya

    I would suspect <?php wp_footer(); ?> is missing, above the </body> tag

    EDIT: I see ya got it, cool!

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Most likely wp_footer is missing from footer.php. If it is, try adding <?php wp_footer();> to that file just before <?body></html>.

  8. farlane
    Member
    Posted 11 months ago #

    This was what fixed my missing adming header - thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic