• saoirsedawn

    (@saoirsedawn)


    I recently installed the Aurora theme to my website (https://soh.clanningcenter.com/) and I noticed there is no way to get back to the “Homepage”. So I was wondering how I’d go about adding in a link, preferably in the navigation (Pages) section. I’ve checked through the Header, Footer, Index documents and I couldn’t find anything that seemed like it would work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • stvwlf

    (@stvwlf)

    Hi

    If you are using WP 2.7 or 2.7.1, you can replace wp_list_pages with wp_page_menu which contains an option to display the home page

    1) open your heme’s sidebar.php file

    2) find wp_list_pages()
    it will look something like this
    wp_list_pages('sort_column=menu_order&title_li=')
    What is between the parentheses will be different.

    3) “Copy” the content between the parentheses – ignore the opening and closing quote. In the example above, you would copy
    sort_column=menu_order&title_li=

    4) Replace the entire wp_list_pages with this:
    <?php wp_page_menu('show_home=1&'); ?>

    5) Now add the content from wp_list_pages into wp_page_menu – fter show_home=1& and before the closing apostrophe paste what you copied in step 3. save the file.

    That should add the Home option to your pages menu.

    Thread Starter saoirsedawn

    (@saoirsedawn)

    I tried it out, nothing is showing.

    This:
    <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>

    Replaced with:
    <?php wp_page_menu(‘show_home=1&title_li=<h2>Pages</h2>’); ?>

    Was that correct?

    stvwlf

    (@stvwlf)

    That is correct and should work

    another way to do it is:

    <li><h2>Pages</h2>
      <ul>
      <li><a href="/">Home</li>
        <?php wp_list_pages('title_li=' ); ?>
      </ul>
    </li>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Aurora Template – Adding Home Link’ is closed to new replies.