WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding custom links to header.php (4 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    Hi, I want to add a couple of outgoing links (i.e. to other websites) in my header.php file, alongside the links to the pages on my website:

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

    So in other words I'd like to somehow add custom hyperlinks into the header, so it appears like: CustomLink1 | About | Contact etc

    How do I do this? Thanks in advance!!

  2. Anonymous
    Unregistered
    Posted 5 years ago #

    Help!!!

  3. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    <ul>
    <?php wp_list_pages('title_li='); ?>
    <li><a href="link1">Name of Link1</a></li>
    <li><a href="link2">Name of Link2</a></li>
    <li><a href="link3">Name of Link3</a></li>
    </ul>
  4. Anonymous
    Unregistered
    Posted 5 years ago #

    Thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Topic