• Resolved themedium

    (@themedium)


    I’m trying to insert a ‘HOME’ button before the other PAGES in the main nav. The code works and the ‘HOME’ button appears first, but it kicks the rest of the menu items to another line thereby doubling the vertical height of the menu bar itself.

    Here’s the code:
    NOTE: Even putting the HREF tag inside the UL CLASS tag results in the same.

    <div id="menu">
            <ul class="pagelinks">
                 <a href="<?php bloginfo('url'); ?>" title="Home">Home.</a>
                 <?php wp_list_pages('title_li=&depth=1'); ?>
            </ul>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter themedium

    (@themedium)

    ?

    Thread Starter themedium

    (@themedium)

    For anyone that needs this:

    <div id="menu">
            <!-- <p id="sitemap"><a href="?sitemap">Sitemap</a></p> -->
            <ul class="pagelinks">
              <?php wp_list_pages('title_li=&depth=1'); ?>
              <li><a href="<?php bloginfo('url'); ?>" title="Home">Home.</a></li>
            </ul>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Home button in main navigation. Problems….’ is closed to new replies.