I am from Thailand, I am using Travelify theme and quite impressed with this theme.
I have just made a theme update.
After updated, I found that there is one menu automatically appears on my menu bar.
It is “Navigation” menu. I went to appearance >> menu, however I found no “navigation” menu in my menu list.
So,how to take out the “Navigation” menu out from my website’s menu bar ?
please kindly advise
(so sorry, I am still new to wordpress)
This addition to the CSS fixed the problem when viewing my site on a laptop browser, but it remains in the pull down menu when viewed on a mobile device. Advice?
I already wrote a code that you should add to Child Theme functions.php file. It is always better to use Child Theme to make any changes because it will make your theme update-proof. Otherwise you will have to add this code manually after each theme update.
// Remove navigation link from TinyNav
add_action( 'init' , 'remove_navigation_link' , 10 );
function remove_navigation_link() {
remove_action( 'wp_nav_menu_items', 'travelify_nav_menu_alter', 10, 2 );
}
I had the same problem which is almost resolved by now, I used the code you posted and it works expect that I’m building a bilingual site. I have no more “navigation” menu on normal computer screen, neither for English on mobile screens. The correction worked in English but I also have a switcher for French (français) and this one still display the “navigation” option. Would you have another magic code to use and fix this one?
I just checked your website and I don’t see any navigation displayed. Probably you have still “cached” version of your website in web browser that still shows it and you shouldn’t worry too much about it. Clean browser cache and you are ready to go.
No, because you have created manu via WordPress dashboard - Appearance - Menu and theme has no power to change what you added there. “Navigation” menu item was created by theme itself, therefore it could be removed.
I’ve managed to add a secondary menu option in the array to do it a different way and call two navs. Testing it by changing primary to secondary in header-extensions.php doesnt do anything. Am I missing something?
WordPress has its own cache, so in many cases changes might not be instant. I usually open any Post/Page and just hit “Update”. It should clear cache and changes should take effect if done correctly.
Hmm tried that and didnt make any difference. Its still showing the primary menu and not the secondary as I modified header-extensions.php to show secondary.
Probably just try to add any random anywhere in the file just to see if this is the right file, or if there is no other cache or something else. Most likely you will get error but you will know that it works. There aren’t anything else that should be edited, so there must be some other problem along the way.