Viewing 4 replies - 1 through 4 (of 4 total)
  • You would need to edit the relevant template file in your theme (try header.php or sidebar.php) and add a hard-coded link to your main web site immediately above<?php wp_list_pages();?>. Check your page’s source code to see what additional markup you’ll need to use to blend this link in with the page links generated by WP.

    Thread Starter jennigje

    (@jennigje)

    Hi,

    I found this in my header file:

    <div class=”block-search”>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>
    </div>
    </div>
    <div class=”menu”>

      <?php wp_list_pages(‘title_li=’); ?>

    </div>

    When you refer to inserting a hardcoded link, Do you mean for me to put http://mydomain.com between the

      and <?php wp_list etcetc?

    Exactly that.

    Thread Starter jennigje

    (@jennigje)

    OK so now it looks like this:

    <div class=”block-search”>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>
    </div>
    </div>
    <div class=”menu”>

    </div>

    But the pages are still redirected to mydomain/blog.

    Have I put it in the wrong spot perhaps?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page links to wrong path’ is closed to new replies.