WordPress.org

Ready to get started?Download WordPress

Forums

how to have pages with different main navigation (3 posts)

  1. bmackler
    Member
    Posted 3 years ago #

    How can I have an alternative main navigation show up on specific pages instead of the default nav bar... not in addition to, but instead of?

    not sure if this is a hack or what, but I cant imagine this should be so hard. is it just me?

  2. webjunk
    Member
    Posted 3 years ago #

    Create seperate template pages and then have them also call some kind of custom header.php

    http://codex.wordpress.org/Templates
    http://codex.wordpress.org/Stepping_Into_Templates
    to start with.

  3. bmackler
    Member
    Posted 3 years ago #

    thanks, I got it up and going, problem is the content is nto formatted, paragraphs, sizing...

    I seem to be missing the proper style...here is my code, not sure whats wrong....

    <div id="content" style="display:block;float:left;padding-left:50px;padding-top:20px;">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div id="post-<?php the_ID(); ?>">
        <div>
          <h2><b>
            <?php the_title(); ?>
          </b></h2>
        </div>
       <p><br /><p> <div>
       <?php the_content('<p>Read the rest of this page &raquo;</p>'); ?>
          <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
        </div>
      </div>
      <?php endwhile; endif; ?>
      <div>
        <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
      </div>
    
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.