Tagged: footer menu, missing menu, sub-menu
-
AuthorPosts
-
June 6, 2017 at 3:10 pm #804525
Hello,
After having a couple of Mods assist with issues I was experiencing with my site in another topic, including a mobile menu issue, I noticed my Footer Menu (in Socket) and Sub Menu that I have on a few pages were replaced with the Main Menu.
Can someone please help bring these other menu’s back? I couldn’t find the reason why these menu’s changed until I searched Editor and found this code (I believe added by a Mod), so maybe this has something to do with the two menu’s being replaced? These menu’s were visible prior to getting assistance but unfortunately I just noticed the change yesterday.
function av_different_mobile_menu( $args = ” ) {
if(wp_is_mobile()) {
$args[‘menu’] = ‘main-menu-mobile’;
} else {
$args[‘menu’] = ‘main-menu’;
}
return $args;
}
add_filter( ‘wp_nav_menu_args’, ‘av_different_mobile_menu’ );Thank you again for your time and assistance!
June 7, 2017 at 11:26 pm #805375Hey eskitaco,
What are your modifications?
That only for the menus?It is hard to remove all of them, it is better you start blank and import the pages content only to get going.
We can not know all the modifications so we can help you remove all of them.Best regards,
BasilisJune 8, 2017 at 7:05 pm #805712Greetings Basilis,
I guess I don’t understand your message and mine wasn’t explicit as well. Here’s what happened and what I would like to happen:
* I created a Footer Menu and added it to the website. The Footer Menu appeared on my site with no problems. Please see screenshots for verification. This menu includes 3 links (Privacy, Terms & Site Map) and the Footer Menu box is checked, so this menu should be displayed in the footer (not the Main Menu).
* I created a Sub Menu and added it to multiple pages of the website. This Sub Menu appeared on my site with no problems. Please see screenshots for verification. This menu includes 2 links (Current Beers on Tap & Full List of Beers). On each individual beer page, I have selected this menu to appear as a Sub Menu, not the Main Menu.
* I created a ticket (#804520) which required help from other Mods to fix some mobile issues I was experiencing and still am experiencing. In so doing, a Main Mobile Menu was created.
* The assistance that I received from the Mods in that ticket resulted in both the Footer Menu and Sub Menu being replaced by the Main Menu. The code that I included in my original message was not something that I added to my website, so I was just providing in case it had something to do with the two menu’s being changed.
* I do not know what happened or why it happened, but I would like assistance in getting the Footer Menu and Sub Menu back by removing the Main Menu in both locations.I hope this makes sense. Thank you again for your time and assistance.
June 13, 2017 at 11:13 am #807359Hi,
Thank you for the info.
Please remove the filter from the functions.php file then replace it with the following code.
/*add new mobile menu swap*/ function avf_mobile_menu_mod( $args = '' ) { if(wp_is_mobile() && $args['menu_id'] == 'avia-menu') { $args['menu'] = 'main-menu-mobile'; } return $args; } add_filter( 'wp_nav_menu_args', 'avf_mobile_menu_mod' );
Best regards,
IsmaelJune 13, 2017 at 4:27 pm #807558Awesome. Thank you so much, Ismael!! The topic can now be closed. Have a nice week.
-
AuthorPosts
- The topic ‘Missing Menu's’ is closed to new replies.