WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page for "Home" in sidebar (4 posts)

  1. chamaree
    Member
    Posted 9 years ago #

    Anyone know how to add a "Home" link on the sidebar? So when you are in a different page, it is easier to go to the main page.

  2. Joshua Sigar
    Member
    Posted 9 years ago #

    The following will give you link to home

    <a href="<?php echo get_settings('home'); ?>">Home</a>

  3. chamaree
    Member
    Posted 9 years ago #

    Great!!! it works. Thanks so much!

  4. ragecg
    Member
    Posted 9 years ago #

    Another way that Minna explained how to do this, and the way I have mine working is:


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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.