Jump to content
Sign in to follow this  
extsar

StationPro 3.2.0 sub menu

Recommended Posts

extsar

I've just updated to StationPro 3.2.0 and now all sub menus are gone. I have: 1. Use WordPress Menus? checked ON 2. Category Subnav Items (Comma Seperated) set to 11,15 3. Hide Sub Header? checked OFF 4. Plus modification of the PHP code suggested in the topic http://www.pagelines.com/forum/topic.php?id=2315 Sub menus should appear here: http://truekat.com/?page_id=62 http://truekat.com/?page_id=240 Please help.

Share this post


Link to post
Share on other sites
cmunns

version 3.2.1 is now ready. Fixed this problem...sneaked past us in the updates.

Share this post


Link to post
Share on other sites
cmunns

Alexei, The support does slow down on the weekends. It seems that you have solved this problem in the meantime? Your site looks great by the way!

Share this post


Link to post
Share on other sites
extsar

Actually the problem is still there. On the page http://truekat.com/products I have a submenu, but it is the same as in News/Blog page and consists of the categories that are set in the settings and not the actual submenu that I've edited in the Appearance/Menus. This was fixed by the modification you suggested here: http://www.pagelines.com/forum/topic.php?id=2315 But once the version was upgraded to 3.2 it doesn't work anymore. The code now looks like that: <?php if(!pagelines('hide_sub_header') && !is_search() && !is_404()):?> <?php if($post->post_parent || wp_list_pages("title_li=&child_of=".$post->ID."&echo=0")) $children = true; else $children = false;?> <?php if($children == true):?> <div id="subhead" class="content fix"> <?php require(THEME_LIB.'/_subnav.php');?> </div> <?php elseif((is_home() || is_category() || is_page('240')) && pagelines('subnav_categories') && wp_list_categories('include='.pagelines('subnav_categories').'&title_li=&echo=0') != " No categories "): ?> <div id="subhead" class="content fix"> <div id="subnav" class="fix">

  • <?php wp_list_categories('include='.pagelines('subnav_categories').'&title_li='); ?>
</div> </div> <?php endif;?> <?php endif;?>

Share this post


Link to post
Share on other sites
cmunns

I think the problem is here; `<?php elseif((is_home() || is_category() || is_page('240')) && pagelines('subnav_categories') && wp_list_categories('include='.pagelines('subnav_categories').'&title_li=&echo=0') != "` I'm not sure why you have the `|| is_page('240')` there because that is what's making the categories show up instead of sub pages.

Share this post


Link to post
Share on other sites
extsar

Hello, If I remove the

|| is_page('240')
then there is no submenu at all. That was a line suggested by you in http://www.pagelines.com/forum/topic.php?id=2315 . But I understand that it works differently in 3.2 compare to 3.1. So I've removed this line and this page http://truekat.com/products is suppose to have 2 submenu items: http://truekat.com/category/tutorials and http://truekat.com/quick-start-guide Please help

Share this post


Link to post
Share on other sites
cmunns

Okay let's start over. Are quick-start-guide and tutorials supposed to be sub-navigation (sub pages) or sub-categories that act as a sub-nav. Hopefully the distinction is clear (cats vs pages)

Share this post


Link to post
Share on other sites
extsar

They are suppose to be sub pages. I replaced Primary Navigation with my MainMenu and in there there are 2 sub pages for the Product page, which are: 1. Quick Start Guide 2. Category Tutorials.

Share this post


Link to post
Share on other sites
cmunns

If they are sub-pages and you want them to show up it should do it automatically assuming you do not have the option checked to "hide sub header" in the theme options. I'm not sure why the || is_page('240') was being used that way to show pages (it seems like that code would be used to show sub-categories), but if it worked it worked. Are you sure that they are sub-pages?

Share this post


Link to post
Share on other sites
extsar

Yes they are sub-pages in the menu MainMenu which is selected as Primary Navigation. is_page('240') is now removed, this was a solution for 3.1 that you suggested. So the problem is that sub menu is never showing up. It only shows up for special case of sub-categories which is good for the blog page. This is becoming a pressing issue for us. Please help.

Share this post


Link to post
Share on other sites
bryan-hadaway

I would recommend re-upgrading the same latest template to make sure it's fresh and doesn't have any edits to the files that you may have made to make absolutely sure it's not an error on your end and then of course reset the settings to the correct options, and then wait for continued developer help at that fresh start point. Also, bump this topic. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

I don't recommend overwriting all the files as Bryan suggested because I know you have made a lot of edits. Just make sure that your sub_head & sub_nav files are up to date by extracting those from the most recent version.

Share this post


Link to post
Share on other sites
extsar

Ok, so files _subhead.php and _subnav.php are reverted. I have the following options: 1. Hide Sub Header? is OFF 2. Use WordPress Menus? is ON 3. Primary Navigation is set to MainMenu 4. In the MainMenu for the Products page I have 2 sub menus: Quick Start Guide (which is a page) and the Tutorials (which is a category). See this image: menu.png I expect to see both Quick Start Guide and Tutorials in a sub menu for products page. But they do not show up. If for the Quick Start Guide page I set Parent - Products page then it shows in a sub menu - with all the same options checked. But Tutorials category is never showing.

Share this post


Link to post
Share on other sites
bryan-hadaway

Please be patient an wait for continued developer help, make sure to bump your topic as well. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

Okay that makes sense. So the subnav wasn't created to handle both a sub-category and sub-page. By default it handles only sub-pages AND sub-categories ONLY on the blog page. Also, the WP3.0 menu system doesn't handle sub menus yet so that is why nesting them has no effect (although it would if you used dropdowns) So I would mark the Quick Start Guide with a parent of Products then in sub_nav.php add this conditional inside of the `

  • ` ` <?php if(is_page('240')):?>
  • Tutorials <?php endif;?> ` Where obviously you need the correct link to that category page. Let me know if you run into problems

Share this post


Link to post
Share on other sites
extsar

I believe this is working fine. Thanks a lot for your help.

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  

×