Forums

How to get a HOME nav link to direct HOME? (5 posts)

  1. rjarmitage
    Member
    Posted 2 months ago #

    Hey guys,

    My site is http://www.tattooremoval.eu

    I have a navigation bar and the links relate to pages. However, I want my HOME link to not link to a new home page but to the actual home URL: http://www.tattooremoval.eu

    I've spent a painstaking amount of time looking through the coding to try and find where I can change this, but no dice.

    Can you help? I've got a feeling this should be real simple once you know how.

  2. Otto42
    Moderator
    Posted 2 months ago #

    Adjust your theme to use wp_page_menu instead of wp_list_pages. Then you can set the show_home parameter and get that link working properly.

    http://codex.wordpress.org/Template_Tags/wp_page_menu

  3. bloggingjunction
    Member
    Posted 2 months ago #

    Explain the question. Do you want your home link to link to your site home page i.e. main page or what? If this is the question,

    ad this code in your header where navbar code is located

    <ul>
    <li><a href="<?php echo get_option('home'); ?>/">Home</a></li>
    		<?php wp_list_pages('title_li=&depth=1&exclude='); ?>
    	</ul>
    <p>If you want to show only home link, you can show by using this code,
    
    <li><a href="<?php echo get_option('home'); ?>/">Home</a></li>

    Hope this solves ur prblm.

  4. rjarmitage
    Member
    Posted 2 months ago #

    Thanks both of you!

    I used bloggingjunction's method as it looked a bit quicker. And lo and behold it bloody works!

    YAY! Thanks so much!

  5. bloggingjunction
    Member
    Posted 2 months ago #

    Good that the method works. Also if you need any more help be sure to ask.
    http://www.bloggingjunction.com

Reply

You must log in to post.

About this Topic