WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WordPress Nav Bar is missing (5 posts)

  1. spastek
    Member
    Posted 9 months ago #

    I'm converting my regular site (www.spastek.com) into a blog. I've got most of it working thus far. However my issue is the nav bar usually at the top is blank (www.spastek.com/blog).

    By nav bar I mean the thing that normally let's you login and such. I'm assuming I'm missing some function in the header.php but I have yet to find out what it is I'm missing to make that display.

    Below is my header.php

    <!DOCTYPE HTML>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
    <html>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <title>
    <?php bloginfo( 'name' ); ?>
    </title>
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <?php
    /* We add some JavaScript to pages with the comment form
    * to support sites with threaded comments (when in use).
    */
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    /* Always have wp_head() just before the closing </head>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to add elements to <head> such
    * as styles, scripts, and meta tags.
    */
    wp_head();
    ?>
    </head>
    <body>
    <div id="header">
    <div id="header-logo">
    <div id="header-logo2">
    <img src="<?php bloginfo('template_directory'); ?>/images/logo.png">
    </div>
    </div>
    <div id="header-nav">
    <div id="header-blog"><img src="<?php bloginfo('template_directory'); ?>/images/blog-nav.png"></div>
    <div id="header-stream"><img src="<?php bloginfo('template_directory'); ?>/images/stream-nav.png"></div>
    <div id="header-tmg"><img src="<?php bloginfo('template_directory'); ?>/images/tmg-nav.png"></div>
    <div id="header-recruit"><img src="<?php bloginfo('template_directory'); ?>/images/recruit-nav.png"></div>
    </div>
    </div>
    <div id="content-wrapper">

  2. spastek
    Member
    Posted 9 months ago #

    I've taken a screenshot to show the issue as it only happens when I'm actually logged in.

    Screenshot

  3. ronangelo
    Member
    Posted 9 months ago #

    is this a custom theme you built from scratch?
    Did you put a <?php wp_footer(); ?> just before the </body> tag?

  4. spastek
    Member
    Posted 9 months ago #

    Yes, this is a custom one I'm building. First one I've built.

    Also no I haven't added that, give me a moment to try that.

  5. spastek
    Member
    Posted 9 months ago #

    Worked like a charm. Thanks a ton!

Reply

You must log in to post.

About this Topic

Tags