Support » Themes and Templates » html links in navigation menu

  • Trying to figure out how to insert some html into the right side of my navigation menu. This is where I’d like to put my subscription links and pics. I think it’s probably over my head but any help would be appreciated 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Please post an URL to your site.

    Peter

    Thread Starter stephsamm

    (@stephsamm)

    http://www.wiredadvisor.com

    What I’d like to do is replicate exactly what tim ferriss has done on his navigation bar (www.fourhourworkweek.com) After his page tabs you’ll see the RSS icon, the ‘7 Reasons To Subscribe’ internal link (I’ve got my link in the sidebar), and Subscribe via: (Email/RSS)

    I don’t have an icon for the RSS but I’ll find one. I just need the basic code for these lines and where to put them! I can fill in the exact links from my feedburner and internal pages.

    Thx
    Steph

    I’m going to make some assumptions here, since I don’t know the theme you’re using.

    What you’re looking for is probably in a file called header.php. The thingy to alter is in a div called navigation.

    The current menu items are pages, and with the function
    <?php wp_list_pages('title_li='); ?> an unordered list is formed (you’ll see this command within two <ul> tags).

    So you’ll have something like this:

    <ul>
      <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
      <?php wp_list_pages('title_li='); ?>
    </ul>

    And you can add as many links as you want:

    <ul>
      <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
      <?php wp_list_pages('title_li='); ?>
      <li><a href="/some/url">Cool Page</a></li>
      <li><a href="/some/otherurl">Boring Page</a></li>
    </ul>

    But again, there were some assumptions, but I think you can work it out.

    Peter

    Thread Starter stephsamm

    (@stephsamm)

    Dude you rock! I will see what I can do with this. I am using the ‘Headway’ theme. Thanks a bunch.

    I would like to add a simnilar link in the menu navigation to my blog

    http://compukol.com/blogs/compukol/

    based on the the SEO Basics theme

    http://wordpress.org/extend/themes/seo-basics

    Thanks,

    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘html links in navigation menu’ is closed to new replies.