ThemeShaper Forums » Thematic

Order of links in top menu

(5 posts)
  • Started 10 years ago by DataGnostics
  • Latest reply from DataGnostics
  • This topic is resolved
  1. I'm having trouble with the links to Pages (in the top menu). What I've got is roughly:

    About
    child page 1: Author1
    child page 2: Author2
    Contact
    Stuff

    On the test server (where I cannot do permalinks, only page_id=nn), the navigation bar is:
    Home|About|Contact|Stuff|Author1|Author2

    On the live server (where I have permalinks), I get:
    Home|About|Contact|Stuff
    -- i.e. the child pages do not appear. Looking at the code, I see that on the live server the child pages are being generated in their own
    <ul>
    , whereas on the test server they are just tacked on the end.

    I can get the pages to appear on the live site by changing the CSS, but I cannot seem to change the order of the Page links (on either site) via hooks-filters.php. No matter what changes I make to this code:
    $menu .= str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('title_li=&sort_column=menu_order&echo=0') );
    the same Pages show up in the same order.

    halp.

    Posted 10 years ago #
  2. The child pages in Thematic menu are hidden via CSS. That's why they're not showing up. If you want to change the page order …

    I think you can you use the page order in the page edit screen to add "page weight"—but I can't remember if this conflicts with the list_pages sanitizing Thematic inherited from The Sandbox—but that'll likely change with Thematic 0.8 when it uses the new menu function …

    Does that help?

    Posted 10 years ago #
  3. um, not so much.

    I think you can you use the page order in the page edit screen to add "page weight"

    Experimentation suggests that it doesn't seem to make a difference.

    the list_pages sanitizing Thematic inherited from The Sandbox

    Where in the code do I *find* this?

    that'll likely change with Thematic 0.8 when it uses the new menu function

    When is that likely to be? On a scale of days/weeks/months?

    Posted 10 years ago #
  4. You've already found it: in hooks-filters.php. You could just replace it with the standard wp_list_pages if you like. Then the page weight would work. Or you could filter it in a child theme—perhaps with a custom menu (which is typically what I end up doing since I hate using wp_list_pages for this and several other reasons).

    Thematic 0.8 should arrive shortly after WP 2.7 does. Maybe a couple weeks after.

    Posted 10 years ago #
  5. The problem turned out to be the code in the child functions.php menu, which was over-riding hooks-n-filters. Got it now.

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.