Feb
13
2009

How To: Modify the Azul/Baughxie Navigation Bar

Updated – 05/17/2009

Thanks to Marla for pointing this out. You can easily change the “Home” button on the Azul/Baughxie themes to anything you want by simply modifying this bit of code in the “header.php” file:

<div id="navbar">

<?php wp_page_menu('show_home=1'); ?>

</div>

All we need to do is modify the menu tag something like this if you want the “Home” button to say “Blog” instead:

<div id="navbar">

<?php wp_page_menu('show_home=Blog'); ?>

</div>

Thats it!

The text that follows is the original post and should be ignored:

I’ve had a few people ask how to modify the navigation bar on the Azul and Baughxie themes. More specifically, how to change the “Home” button into something else. Let me start by explaining what’s already there.

Starting in WordPress 2.7 there is a nice clean bit of code that will display the Pages on your blog and a “Home” button all with just one tag: wp_page_menu

The code I used looks like this:

<div id="navbar">

<?php wp_page_menu('show_home=1'); ?>

</div>

The above is clean and to the point, the only problem is that if you want to change the home button from “Home” to something else like “News” or “Blog” then, in short, you can’t.

What we CAN do is rebuild the navigation bar with the following code:

<div id="navbar">

<ul>

<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php get_bloginfo('url'); ?>">Blog</a></li>

<?php wp_list_pages('title_li=&depth=0'); ?>

</ul>

</div>

It’s a little more complex, but this will let you name the home button to anything you want. In the example above the home button was named “Blog”.

11 Responses to “How To: Modify the Azul/Baughxie Navigation Bar”

  1. Very good work on your Azul Theme! I love it!
    Are you perhaps planning on a 3 column version?

  2. A 3 column theme is on my list of to do’s. Basing it on the Azul theme is not a bad idea actually!

  3. Nice theme and i like it
    How to make it “threaded commend”, “commented page” and and a “page without side bar template”
    Thanks

  4. It sure wouldn’t. Looking forward to it:)

  5. I understand how to change the navigation bar to read “Blog” instead of “Home,” however, is there anyway to make a static page load when the website is first accessed. I would rather not have my blog be the first thing that the user is presented upon visiting my site.

    Thanks. Also, both of your themes are great.

  6. Yes, this is done through the Dashboard. Log into your dashboard and go to Settings>Reading and make the changes to your blog there.

  7. Very good work on your themes! :)

    I’m using baughxie on a blog I’m working on, and I have some task I’d like to share with you.

    Firstly, I’ve resolved the Home/Blog situation without changing the code. I don’t know if is a WordPress 2.7 new option, but I remember changing that on the dashboard (I think, I’ve touching lot of code and options last days and I can’t remember). Anyway, I’ll search and tell you if I find it.

    Mo’ things: I wanted to order the pages on the navbar. If anyone want to do the same, is just adding &sort_column=menu_order’ on the call to the function in header.php:

    And put the order you want on Pages > Edit.

    And, for last at the moment…How can I edit Calendar and the others sidebar’s default widgets without changing the code? I see they are defaults beacuse are directly included on sidebar.php, so I had to comment the ones that I didn’t wanted to show.

    Lot of thanks and keep the good work! :)

  8. Thanks for the tips!

    The widgets that I built into the the theme can be removed without touching the code. They are just there for convenience and as an example of what your widgets will look like. To remove them from the dashboard, just navigate to Appearance>Widgets and they will be automatically removed when you start adding your own widgets.

  9. Hallo
    I use Azul 1.1 in blog.teddy-fabrik.de
    I did not swtich to 1.4 as I have translated text
    to German inside the Code.

    I like it as it is easy and clean

    The only thing I miss is the
    Navigantion with pull down Menus
    or something like this.

    Any idea whho to include DropDown menu Structure ???

    Martin from Germany

  10. I am using Azul and i am trying to reorder the pages but im having no success. Have installed the My Page Order plugin as well but this has no effect. Any Suggestions please?

  11. I don’t think you need a page order plugin. Login to your dashboard and edit a page…on the right under “Attributes” you’ll see a box for “Order”. Just assign a page number for each page in that box and you should be good to go.

Leave a Reply

You must be logged in to post a comment.