Forums

[resolved] Change Home order nav bar (3 posts)

  1. igi0n
    Member
    Posted 1 year ago #

    Hello

    Im trying to find out how i can change my home button to the left. It is placed at the right at this moment.
    http://i56.tinypic.com/2zt90nt.jpg

    Here is the lower part of the header.php

    </head>
    <body>
    <div id="header">
    <div id="menubar">
    <ul id="menu" style="padding:0; margin:0;">
    <li <?php if ( is_home() ) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_settings('home'); ?>/">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <div class="clearboth"> </div>
    </ul>
    </div>
    
    <h1 class="blogtitle"><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"> <?php bloginfo('description'); ?></div>
    
    </div>
  2. Curtiss Grymala
    Member
    Posted 1 year ago #

    Your menu items are floated right. In order to make the Home button appear on the left of the menu, you need to put it last.

    Therefore, your code should look like:

    </head>
    <body>
    <div id="header">
    <div id="menubar">
    <ul id="menu" style="padding:0; margin:0;">
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <li <?php if ( is_home() ) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_settings('home'); ?>/">Home</a></li>
    <div class="clearboth"> </div>
    </ul>
    </div>
    
    <h1 class="blogtitle"><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div class="description"> <?php bloginfo('description'); ?></div>
    
    </div>
  3. igi0n
    Member
    Posted 1 year ago #

    Thanks allot, it worked!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.