Viewing 8 replies - 1 through 8 (of 8 total)
  • You probably have something similar to the following in your header.php file in your theme directory.

    <?php wp_list_pages(); ?>

    You can do this in several ways but as you have minimal links, probably just as easy to opt forthe manual method and replace the above with something like this…

    <ul>
    <li class="first"><a href="https://www.wizzhack.co.uk">Home</a></li> <li class="page_item"><a href="<?php bloginfo('url'); ?>/?page_id=4" title="About">About</a></li>
    <li class="page_item"><a href="<?php bloginfo('url'); ?>/?page_id=3" title="About Me">About Me</a>
    <li><a href="https://external-link.com">Video</a></li>
    </ul>

    Thread Starter WizzKid

    (@wizzkid)

    Thanks for the help, but it doesn’t seem to work, or is it just me!

    I deleted <?php wp_list_pages(); ?> and added:

    <ul>
    <li class="first"><a href="https://www.wizzhack.co.uk">Home</a></li> <li class="page_item"><a href="<?php bloginfo('url'); ?>/?page_id=4" title="About">About</a></li>
    <li class="page_item"><a href="<?php bloginfo('url'); ?>/?page_id=3" title="About Me">About Me</a>
    <li><a href="https://www.wizzhack.co.uk/poxy/poxy.php">PR0XI3</a></li>
    <li><a href="https://www.wizzhack.co.uk/media_/images.php">Photography</a></li>
    </ul>

    In the Div Menu.

    Is this right?

    Thanks,

    WizzKid

    I missed a closing </li> at the end of title="About Me">About Me</a>

    But that shouldn’t stop it from working. What is NOT working exactly?

    Thread Starter WizzKid

    (@wizzkid)

    Well, I cant see any links on the top bar (www.blog.wizzhack.co.uk)

    I added a PR0XI3 Link and a Photography link, but they dont appear!

    Thanks again,

    WizzKid

    I don’t know where you put that code from above but it does not appear to be in your div menu area.

    Thread Starter WizzKid

    (@wizzkid)

    Well I am uploading it fine.

    Are you sure its header.php I have to edit?

    ??

    Not 100% but I am sure it needs to sit between <div id="menu"></div>

    and should have replaced <?php wp_list_pages(); ?>

    Thread Starter WizzKid

    (@wizzkid)

    Thanks for your help man!

    Got it worked, but editing the wrong header.php!

    Thanks again,

    WizzKid

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Links to external websites’ is closed to new replies.