menu not visible on archive pages
Hi,
I made a custom template from your vantage theme with minor modifications.
How can I make the main menu reappear on archive pages.
thank you!
Bruno
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
4Hi Bruno
Hard to say looking at the site from the browser. Could you perhaps send a zipped copy of your child them to [email protected]? I’ll take a look. Please include a link back to this thread in that email.
Thanks
Hi Andrew,
thank you for your reply.
I think the problem is between the theme and a plug-in of wpmu (custom sidebars pro).
The support there ask how the menu in vantage is implemented:
Did he use custom Walker class? Or standard wp_nav_menu?
Can you help me out, I think together we will fix this issue.
Thanks!
Hi Andrew,
fixed it by myself with this code in functions.php
function namespace_add_custom_types( $query ) { if( is_category() || is_tag() ) { $query->set( 'post_type', array( 'post', 'nav_menu_item', 'ansprechpartner' )); return $query; } } add_filter( 'pre_get_posts', 'namespace_add_custom_types' );Awesome, really glad to hear you made progress there. Thanks for posting the solution.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.