Want child pages NOT to appear in the top subnav menu
Hi Andrea, I love Hanami and want to use it for my new site, which is primarily static pages for articles. I want my "Articles" top-level page to appear in the topnav menu, but for space reasons I want the (many) child pages to appear only in the sidebar -- NOT in the subnav menu. Any way I can do that? Thanks in advance.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Tom,
Apologies for the delayed response (apologies to everyone who has asked a question in the last several weeks) - work has been keeping me really busy.
To restricted the top-level pages to just the top-level categories, look for this line in header.php:
<?php wp_list_pages('title_li='); ?>
and change it to:
<?php wp_list_pages('title_li=&depth=1'); ?>
Setting the depth to 1 will tell it not to display child pages in the nav listing. Let me know if you have any problems!
Cheers,
Andrea
I’m summertime happy.
The company says
this answers the question
Loading Profile...



EMPLOYEE