• Resolved Robert Heller

    (@robertpheller)


    On my website, https://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]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    https://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

    Thread Starter Robert Heller

    (@robertpheller)

    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.

    Thread Starter Robert Heller

    (@robertpheller)

    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> tag

    EDIT: 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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Admin bar missing on front side pages’ is closed to new replies.