Hello,
I have my main menu that is display on the home page, on articles, pages (everywhere) but not on categories.
I can’t find something in the back-office that say that this menu should not be display on categories pages.
Just to be clear, i’m working on custom posts type.
Can someone help me to display this menu also on categories.
Thanks
Hi,
If you will check our demo preview from here -> you will see that the main menu is omnipresent for all the website pages, sorry! Most likely, this problem comes from your untested plugins. Try to disable all of these, clear all the caches, purge CDN files and check the results. If you need more assistance, please provide your website URL.
Hope that helps!
Thanks.
Hello,
I have no cache or CDN for now and i try to disable all the plugins but no results. You can check the page where the menu is not working here : https://www.allgolfs.com/fr/golfs/france/
Thanks
Hi,
Please send us an email contact@tagdiv.com with your log-in information (wp-admin) so we can further investigate it closer your setup page.
Thanks for the message!
Hello,
Sorry, but I found where is the issue.
I add a function that was supposed to display my custom posts types everywhere on the website, but it is blocking the menu.
I put the function just after.
add_filter(‘pre_get_posts’, ‘query_post_type’);
function query_post_type($query) {
if( is_category() || is_tag() ) {
$post_type = get_query_var(‘post_type’);
if($post_type)
$post_type = $post_type;
else
$post_type = array(‘nav_menu_item’, ‘articles’, ‘post’, ‘golfs’, ‘categories’); // don’t forget nav_menu_item to allow menus to work!
$query->set(‘post_type’,$post_type);
return $query;
}
}
So when the function is on, the menu not display in categories, but when the code is of the categories not display (but menu ok).
I try to change :
$post_type; to $post_type = array(‘nav_menu_item’, ‘articles’, ‘post’, ‘golfs’, ‘categories’);
And it seems to work fine for now.
Do you think I have to add more things than ‘articles’, ‘post’, etc. ?
Thanks
Hi,
Unfortunately, as you want involves doing such custom modification and we cannot provide custom work at the moment, sorry! By default, our theme works as expected and the menu section is displayed on the entire website, sorry! Notice that we cannot provide support for your custom code, sorry! If you want to display more levels in our theme and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work, sorry!
Thanks for the message!