Jump to content
Sign in to follow this  
lmcmanus

grandchild fly-out in sub-nav?

Recommended Posts

lmcmanus

Is there a way to have the grandchild fly-out appear in the sub-nav bar just like it is now in the main drop down?

Share this post


Link to post
Share on other sites
catrina

Hello, It might be possible if you implement some code in one of theme files. Can you send me a link to your website?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
cmunns

It would be fairly involved to implement. How comfortable are you editing code. Take a look at the _sub_nav.php file.

Share this post


Link to post
Share on other sites
bryan-hadaway

Okay, that's good to hear. Please wait for continued developer help and bump your topic. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

Okay, can i get some stuff straight first? You need the "sub-nav" to have drop downs correct? which then reveal what would be the grandchild pages?

Share this post


Link to post
Share on other sites
lmcmanus

yes, correct, either dropdowns or a fly-out...

Share this post


Link to post
Share on other sites
bryan-hadaway

Hi Leslie, I'm not sure if the developers can accommodate such a feature in the support forum, I'm sure they'll take this into consideration for future releases. In the meantime you could consult with Anna anna(at)pagelines.com to discuss professional services and updates. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

If you make your _sub_nav.php look like this that will be step one `

  • <?php global $wp_query; if( empty($wp_query->post->post_parent) ) { $parent = $wp_query->post->ID; } else { $parent = $wp_query->post->post_parent; } ?> <?php if(wp_list_pages("title_li=&child_of=$parent&echo=0" )): ?>
  • <?php wp_list_pages("title_li=&child_of=$parent&depth=2" ); ?>
<?php endif; ?> <?php if(!is_page_template('page-highlight.php') && !pagelines('hidesearch')) get_template_part ('library/_searchform'); ?>
` This creates the nested UL's needed for dropdown, from there you just need appropriate CSS

Share this post


Link to post
Share on other sites
lmcmanus

Thanks a lot! I've added this to _sub_nav.php, and added id "submenu" to CSS (grandchild), but am not getting the flyout in the subnav yet...can you help w/ what I may be doing wrong?

Share this post


Link to post
Share on other sites
cmunns

Without seeing what you have I can't really help. Assuming you're doing the CSS correctly (there are a lot resources on this) you will need to make sure overflow for the sub head isn't hidden so it should be ` #sub_head { overflow:visible; } ` ...so that the dropdown isn't hiding.

Share this post


Link to post
Share on other sites
cmunns

if you need more help this should put you in the right direction as well ` #submenu ul ul.children {display:none;} #submenu ul li:hover .children {display:block;position:absolute;} `

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×