Forums

Adding a Home Link with WP-PagesNav (3 posts)

  1. jdelabar
    Member
    Posted 7 years ago #

    I did a search and was unable to find exactly what I needed...

    How do I add a home link to my pages navigation with the WP-PagesNav plugin installed? I know I need to edit the PHP, but considering I'm a PHP newbie I'm not sure where to start.

    Thanks in advance!

  2. jimHere
    Member
    Posted 7 years ago #

    For me it's in my theme's header.php.

    <ul class="menu">
    <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">">Home
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
    <?php wp_register('<li class="admintab">',''); ?>


    Which I think I took from another theme...

  3. Lester Chan
    Member
    Posted 7 years ago #

    did u mean wp-pagenavi? What do u mean by putting the home link? where do u want to put it?

Topic Closed

This topic has been closed to new replies.

About this Topic