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?
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>
karengo
Member
Posted 3 years ago #
Thanks, threestyler. That did it just perfectly.
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?
Heather
Member
Posted 3 years ago #
Thanks for posting this. It is just what I needed to know! :)