How To Include a "Home" link in the top of my blog?

Discussion in 'Blogging' started by kittyluver, Dec 29, 2008.

  1. #1
    Hi,

    I have started a new blog about "Dog Help". I am trying to Include a link to my home page at the top next to "About" page. will anybody help how to include the home link at the top of the page. I am doing this because if a visitor visits an individual post of my blog, he ought to delete the rest of the URL to view my home page.

    Please help me...
     
    kittyluver, Dec 29, 2008 IP
  2. North Carolina SEO

    North Carolina SEO Well-Known Member

    Messages:
    1,327
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    105
    #2
    I'm not sure what program you are using to manipulate the HTML code but...
    the code you are looking to add would be similar to:

     
    North Carolina SEO, Dec 29, 2008 IP
  3. kittyluver

    kittyluver Notable Member

    Messages:
    6,812
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    263
    #3
    I do want to link the page Home to Home page. Now you can see the page as Home...
     
    kittyluver, Dec 29, 2008 IP
  4. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Within one of my blogs in a section called Menu i used this:

    <ul>
    <li<?php if ( is_page('home') ) { echo ' class="current"'; } ?>><a href="http://www.sitename.com/">Home</a></li>
    <li<?php if ( is_page('about') ) { echo ' class="current"'; } ?>><a href="http://www.sitename.com/about/">About</a></li>
    <li<?php if ( is_page('contact') ) { echo ' class="current"'; } ?>><a href="http://www.sitename.com/contact-us/">Contact Us</a></li>
    <li<?php if ( is_page('privacypolicy') ) { echo ' class="current"'; } ?>><a href="http://www.sitename.com/privacy-policy/">Privacy Policy</a></li>
    </ul>

    Maybe something like that could go into your Nav section.
     
    pipes, Dec 29, 2008 IP