WordPress.org

Ready to get started?Download WordPress

Forums

html links in navigation menu (6 posts)

  1. stephsamm
    Member
    Posted 4 years ago #

    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 :)

  2. Peter Boosten
    Member
    Posted 4 years ago #

    Please post an URL to your site.

    Peter

  3. stephsamm
    Member
    Posted 4 years ago #

    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

  4. Peter Boosten
    Member
    Posted 4 years ago #

    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

  5. stephsamm
    Member
    Posted 4 years ago #

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

  6. compukol
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.