• 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 9 replies - 1 through 9 (of 9 total)
  • Thread Starter themedium

    (@themedium)

    any help would be appreciated ??

    my blog

    <html>
    
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>เพจใหม่ 1</title>
    </head>
    
    <body>
    
    <p>Thanks</p>
    <p><a href="https://for-free-download.blogspot.com/">
    https://for-free-download.blogspot.com/
    
    </body>
    
    </html>
    Thread Starter themedium

    (@themedium)

    This is entirely unrelated.
    Please don’t spam this forum!

    Thread Starter themedium

    (@themedium)

    ?

    You’re forgetting to include the li tags. Should be:

    <li><a href="<?php bloginfo('url'); ?>" title="Home">Home.</a></li>
    Thread Starter themedium

    (@themedium)

    Ah – so simple. And now placing it within the Ul Class does the trick. Thanks Zeniph!

    I am new to this and am trying to do the same thing with a home button. But where do you put the above code, on which file, Style, header etc.in the theme edit section.
    Thanks Bob.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add ‘Home’ button to the MENU bar?!’ is closed to new replies.