• Well I’ve gotten far enough to get the nav bar on my page where i want it, but the whole reason I wanted it was for people to be able to use in on every page, for easy navigation. I just updated to wordpress 1.5 so i’m a little unfamiliar of where things need to go, and a little scared to mess around with things too much. Can anyone help me get this to appear on every page? Also if anyone knows how to get the last link used to be the same color as the background of the website, like on binary bonsai white/white. My site is https://www.michaelpeteuil.com, if you need any code, let me know.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The code used to make the nav bar on the main page, put it in your header, on your admin page, it should be labeled ‘Header Template’.

    Just put that code at the very bottom of your ‘Header Template’

    Thread Starter mygly

    (@mygly)

    The only code i have is in the index for the theme, and it’s
    <?php // get the nav etc ?>
    <?php include "topbanner.php"; ?>

    Thread Starter mygly

    (@mygly)

    put those lines at the very bottom of your ‘Header Template’

    Thread Starter mygly

    (@mygly)

    Thanks, that seems to have worked. I saw something different in another file it was this.
    <?php
    // if we have more than one page then show the nav at the top

    if (anymorepages()) { ?>
    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
    </div>

    <?php } ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="post">
    <!-- Post title -->
    <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a>&nbsp;&nbsp;<span><?php comments_popup_link_title(__('0'), __('1'), __('%'), __(''), __(''), 'Comments: '.get_the_title()); ?></span><?php edit_post_link(" <small>e</small>"); ?></h3>
    <!-- Post meta -->
    <div class="meta">
    Posted on <?php the_time('F jS, Y') ?>. <!-- By <?php the_author() ?>. --> About <?php the_category(', ') ?>.</div>

    <!-- Actual post -->
    <div class="storycontent">
    <?php the_content(); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>

    <?php endwhile; ?>

    <?php
    // if we have more than one page then show the nav at the bottom

    if (anymorepages()) { ?>
    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
    </div>

    <?php } ?>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
    <?php include "searchform.php"; ?>

    <?php endif; ?>

    <div style="clear: both;"></div>

    </div>

    <?php // get footer ?>

    <?php include "footer.php"; ?>

    </div>

    </div>

    </body>

    </html>

    Thats just refering to WordPress’s really basic(crappy) navigation, all it does is put something like the following at the top and bottom of your pages if you are browsing the archives:

    « Previous Entries —- Next Entries »

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Supernav (horizontal nav) only appears on homepage’ is closed to new replies.