• Resolved Jamison

    (@jamisonlofthouse)


    The admin bar seems to not be showing up on the front end. I have checked header.php and footer.php and they seem to have the correct calls to the header and footer functions. There’s a line in the source, “<style type=”text/css” media=”print”>#wpadminbar { display:none; }</style>”, that looks like it might disable it but removing it doesn’t change anything.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jamison

    (@jamisonlofthouse)

    I have figured it out. After line 57 of index.php should be <?php wp_footer(); ?>. I’m trying to figure out why index.php has footer code in it and why index.php isn’t calling get_footer(); as it should. That’s some lazy coding. (also, why is get_header(); called with an extra ?>?)

    Theme Author sonalsinha21

    (@sonalsinha21)

    Its not lazy coding.

    It is done deliberately. Footer.php is not called on homepage as the slider doesn’t allow footer to be active.

    But if you use homepage as a static page then footer.php does get called.

    Thread Starter Jamison

    (@jamisonlofthouse)

    Then the wp-admin bar footer should also be called in that code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing admin bar on front end’ is closed to new replies.