Add Home link on side bar under pages.

Posted on 2007-07-26
Last Modified: 2010-10-05
Hello Experts I would like to use this template but I would like to add the word Home under the pages category on the right that would point to the front page instead of a page itself. Everything I have tried breaks the formatting of the site design. Please leave detailed instructions with code first correct solution gets 500 points!

Thank you.
Question by:cbossert
    LVL 19

    Expert Comment

    The Pages section is a function of back-end blog via the following line from the sidebar.php file of the theme:

    <tr><td colspan="2"><?=$pages_html?></td></tr>

    You can put your link to your home page between the <td colspan="2"> tag and the <?=$pages_html?> tag for a static link, but the rest ("Pages" and the links) are all dynamically created based on the blog.
    LVL 1

    Expert Comment

    First you have to know the name of the page where the link you want must come.
    Second, go to the spot you want. For example to the bottom, and plugout your code.
    At last, put your link at the spot where you have located the right spot for your link ;)
    LVL 13

    Accepted Solution

    Neither one of these solutions are correct. Here's one that is. I already tested it with my own blog and it works fine (and I liked your idea enough that I'm keeping it there!):

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
    An earlier version of this article was originally posted on my personal blog at: ​ Introduction In most blogs, a fairly common navigational element is to have li…
    The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
    The viewer will learn how to count occurrences of each item in an array.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now