• wyomingpbs

    (@wyomingpbs)


    I’m using the Bamboo theme because I like having the list of additional pages right under the logo, but I want one of the pages to be a link to an external site, rather than a page within my own blog… that is, across the top under the banner it would have (for example)
    HOME ABOUT US THIS-OTHER-SITE ETC.
    and clicking on “THIS-OTHER-SITE” would take you right to the external site. But so far all I can do is create a page on that link and populate it with my own content (which can indeed include a link to the external site, but that’s… ugly).

    Funny thing, when I created that page with my own content, I couldn’t find it anywhere so I could manually change the php file or whatever controls the URL that option takes you to.

    Is this possible at all, or am I stuck with forcing users to click once to open the page, then click again for the external link?

    Peter B. Steiger
    Cheyenne, WY

Viewing 3 replies - 1 through 3 (of 3 total)
  • Peter,

    You need to edit the Bamboo theme’s header.php file. If you open it in a text editor, you will find this code on line 28:

    <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order');?>

    This code will generate a <li><a href="#">link text</li> line of code for each top level page that you have entered in your WordPress admin. After this line of code, you can add as many links as you would like in the following fashion:

    <li><a href="http://wordpress.org/">Wordpress</li>

    Hope this helps,
    -Mike

    While it’s a solution, it’s a pretty lame solution (not to point blame at mfields) and for two reasons…

    • External links have to be hardcoded into the template, undermining WordPress’ dynamic nature
    • External links are forced to either the beginning or end of the menu, and cannot appear anywhere in between without considerable CSS tweaking

    Next version of WordPress needs to have this functionality built-in. (Or I suppose someone could just create a plug-in…)

    You could install Page Lists Plus, which lets you redirect Page links.

    Just create a Page within WP, add a redirect url in the Redirect To field under Page Lists Plus, and use the Page Order field to get the Page to the position you want in your menu.

    – Tim

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add an external link to the Pages menu?’ is closed to new replies.