Support » Themes and Templates » Adding a non-Page item to a header

  • I’m tweaking the Andreas09 theme for my web site — — and have been very happy with the results. One thing has stumped me though. I am integrating Gallery into my WP site and want to add a Gallery link to my header. I’ve currently got this code in my header.php file:

    <div id=”navigation”>

      <li class=”selected”>>Home
      <?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>


    So, what I want to do is add another item called “Gallery” to that with the same formatting as the Page items. I can add it as a line item to the existing list but I don’t get the same formatting. So, I’m assuming this is a CSS issue, which is totally new to me. Any advice?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Try this:

    <div id="mainmenu">
    <li class="<?php echo $home_highlight; ?>"><a href="<?php echo get_settings('home'); ?>">Home</a></li>
    <?php wp_list_pages('depth=1&title_li=' ); ?>
    <li class="<?php echo $blog_highlight; ?>"><a href="">Gallery</a></li>

    (This is from a site using that same theme, btw) 🙂

    Hi, i have the “pool” theme and i can add pages that appear into my header page with Icons and thats good for me.
    now i want to add another icon like “archives” and i want to put all my archives and the coming archives into that icon is there any idea to do that ?


    ladydelaluna, thank you!!! I modified what you provided somewhat:

    <div id="navigation">
    <li class="selected"><a href=<?php echo get_settings('home'); ?>>Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <li class="<?php echo $blog_highlight; ?>"><a href="">Photo Gallery</a></li>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a non-Page item to a header’ is closed to new replies.