Forums

[resolved] Nav bar link to external page? (5 posts)

  1. karengo
    Member
    Posted 3 years ago #

    I have several WP Pages on a navbar and want to add just one more link ('Forum') that is not a WP Page but an external page. I don't want it elsewhere on the page or the sidebar, I want it right there on the nav bar just like all the other pages.

    I don't see any way to add an external page through WP Admin. Am I missing something obvious?

  2. threestyler
    Member
    Posted 3 years ago #

    You can hardcode it yourself by modifying the header.php of your theme.

    Open header.php

    look for:

    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>

    Change to:

    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    <li><a href="yourdomain.com/forum/">Forum</a></li>
    </ul>
  3. karengo
    Member
    Posted 3 years ago #

    Thanks, threestyler. That did it just perfectly.

  4. Yemoonyah
    Member
    Posted 3 years ago #

    This is exactly what I needed to know. But I want it as a page child.
    Is there a way to do that?

  5. Heather
    Member
    Posted 3 years ago #

    Thanks for posting this. It is just what I needed to know! :)

Topic Closed

This topic has been closed to new replies.

About this Topic