• I’m having a little challenge with my site. I am willing to go with one of three options, and want to know what to do – plugins, code, css, etc.

    I have some pages at the top of my site. I want to not show the child pages (I’m already familiar with the exclude pages plugin), and have 1 of three options to access the children pages.

    1. (simple and most preferred). Scroll over the parent page and have an ajax dropdown of the child pages.

    2. On each parent page, have a link at the top of the page that is always there (at the top) regardless of updated posts, content, etc…so the links to the child pages are on the parent pages at the top at all times.

    3. (least preferred) Have the child page information at the bottom of the parent pages and links to scroll down to that information.

    I don’t know how to do any of the 3, but am confident I have the “skill” once pointed in the right direction. Advice on 1 and 2 are very, very appreciated.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have never come across a single user who has actively liked dropdown or flyout menus. Mainly because the damn things tend have a hair trigger and pull-up/fly-in when you least expect them to – making basic site navigation just that little bit more frustrating than it should, ideally, be. You also need to factor in that not every user will be browsing with a mouse and that some dropdown menus are completely impossible to use in those circumstances.

    Personally, I’d go with Option 2. User studies have shown that the majority of surfers are quite happy to click through a number of pages providing that they feel like they’re going in the right direction, can get back to the home page at any point and don’t have to fight with the navigation system to move around easily.

    Thread Starter tupston

    (@tupston)

    Ok, great. I can live with that. Can anyone help me out on figuring out how to do that?

    I currently have pages and categories linked to the same page – so the “page” link shows all the posts for a that given category/page. When new content is added, I don’t want the links to other pages to be pushed down into the content…I want them always at the top. Any tips?

    How about adding the following to the template file just before The Loop:

    <?php if (is_page()) {
    	$this_page = $post->ID;
    	if ($post->post_parent) $this_page= $post->post_parent;
    	$children = get_page_children($this_page, get_pages());
    	if($children) {
    		$subpages .= '<ul class="subpages">';
    		foreach($children as $child) {
    			$subpages .= wp_list_pages('title_li=&include='.$child->ID.'&echo=0');
    		}
    		$subpages .= '</ul>';
    	}
    }
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to experts needed. Simple problem w/no luck so far.’ is closed to new replies.