WordPress.org

Ready to get started?Download WordPress

Forums

Blix, help with "Page links" in header... (6 posts)

  1. herbrokentoy
    Member
    Posted 8 years ago #

    Hi there. I've tried everything to fix/resolve this issue. It's fine in firefox but in IE, the theme I'm using looks horrid.

    http://herbrokentoy.com (View in IE to see what I'm referring to)

    Could someone help me out? How do I remove the page links that are untitled in my header? I want the ones with titles to stay but the rest can go. I've tried several things mentioned here, that should have fixed the problem and nothing has for IE.

    Any help is greatly appreciated.

  2. herbrokentoy
    Member
    Posted 8 years ago #

    also.. if there isn't a "fix" for this issue, is it possible to just remove that portion from the header and manually code the links for that area?

    Thanks!

  3. moshu
    Member
    Posted 8 years ago #

    Yes, it is possible. You should remove the wp_list_pages tag.
    Another option would be (if you want to use that tag) to use the exclude function.

  4. herbrokentoy
    Member
    Posted 8 years ago #

    Thank you. I have fixed the problem by manually adding them, just to make it easier. :)

    Thanks again!

  5. ladydelaluna
    Member
    Posted 8 years ago #

    I'm having an issue with this myself - I'd like to just list the pages and have the hovering work, but not use this "BX" function thing...

    <ul>
    <li<?php if (is_home()) echo " class=\"selected\""; ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php
    $pages = BX_get_pages();
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    if ($page_name == "archives") {
    (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Archives</a></li>n";
    }
    elseif($page_name == "about") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">About</a></li>n";
    }
    elseif ($page_name == "contact") {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">Contact</a></li>n";
    }
    elseif ($page_name == "about_short") {/*ignore*/}
    else {
    (is_page($page_id))?$selected = ' class="selected"':$selected='';
    echo "<li".$selected."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>n";
    }
    }
    }
    ?>
    </ul>

    Can anyone help?

  6. gutielua
    Member
    Posted 8 years ago #

    About this topic [Links], all page are listed by ID number, what I need to do to order by name of the page?

    Regards!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags