Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #824915

    Hello.
    I’ve read through as many related threads as I can find. Tried any relevant solutions and still cannot get our mobile menu to display. The problem is related to a menu plugin that I installed after seeing a separate thread on this forum: Zen Menu Logic (https://kriesi.at/support/topic/different-menu-on-different-pages/) This plugin allows us to display different menus (other than the Enfold main menu) on targeted ad landing pages. Since the most recent Enfold update, the hamburger menu is missing on mobile pages using these alternative menus (it worked prior to this update).

    2017 Main Menu (Enfold Main Menu) – burger menu displaying
    Personal Injury Menu – burger menu not displaying

    We had to turn off an active ad campaign because of this, so I am hoping you can help. I’ve created an admin login if you need to access our site (see private content). When you inspect the page, you can see the menu content.

    If there is a way to select different main menus without the use of a plugin, I’m happy to try that solution.

    Thanks!

    • This topic was modified 6 years, 9 months ago by DWMLawFirm.
    #825157

    I had to turn Zen Menu logic off to start our campaign again. There was no other way around this issue.

    #828474

    Hi,
    Thank you for sharing your solution, shall we will close this now?

    Best regards,
    Mike

    #829232

    Well, not really a solution. More of a last resort. Is there any other possible way of selecting a different main menu for specific pages of the site? Because Zen Menu no longer works with this version of Enfold.

    • This reply was modified 6 years, 9 months ago by DWMLawFirm.
    #829272

    Hi,

    These are known issues with the latest update and they are being actively worked on by the developers. We will keep you updated with its progress and/or release of a new update.

    Best regards,
    Jordan Shannon

    #856445

    Hello,

    Suggestion for a upgrade-proof work-around:

    • Copy header.php to a child theme and name it the same as your menu in wordpress (in slug-format, lower case, replace spaces with dashes, etc: header-newmenu.php)
    • Copy includes/helper-main-menu.php to child theme – you can also rename it helper-newmenu-menu.php for identification purposes.
    • Open header-newmenu.php and look for get_template_part( ‘includes/helper’, ‘main-menu’ ); (around line 71) and change ‘main-menu’ to ‘newmenu’, save and upload.
    • Open includes/helper-newmenu.php
      • find $avia_theme_location = ‘avia’; Change ‘avia’ to ‘newmenu’
      • Find $avia_menu_class = $avia_theme_location . ‘-menu’; Change to $avia_menu_class = ‘avia-menu’;
    • Find the following block of code in the functions-enfold.php file in the main Enfold template folder and copy it to your child theme’s functions.php file:
      if(!function_exists('avia_append_burger_menu'))
      {
      	//first append search item to main menu
      	add_filter( 'wp_nav_menu_items', 'avia_append_burger_menu', 9998, 2 );
      	add_filter( 'avf_fallback_menu_items', 'avia_append_burger_menu', 9998, 2 );
      
      	function avia_append_burger_menu ( $items , $args )
      	{	
      	    if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu"))
      	    {
      	        $class = avia_get_option('burger_size');
      	        
      	        $items .= '<li class="av-burger-menu-main menu-item-avia-special '.$class.'">
      	        			<a href="#">
      							<span class="av-hamburger av-hamburger--spin av-js-hamburger">
      					        <span class="av-hamburger-box">
      						          <span class="av-hamburger-inner"></span>
      						          <strong>'.__('Menu','avia_framework').'</strong>
      					        </span>
      							</span>
      						</a>
      	        		   </li>';
      	    }
      	    return $items;
      	}
      }
      
    • Change the following line from:
      if ((is_object($args) && $args->theme_location == ‘avia’) || (is_string($args) && $args = “fallback_menu”))
      to:
      if ((is_object($args) && in_array($args->theme_location, array(‘avia’,’newmenu’))) || (is_string($args) && $args = “fallback_menu”))
      Using in_array so you can conveniently add more menus as needed.

    Note: this won’t add the search magnifying glass.

    • This reply was modified 6 years, 7 months ago by betaphase.
    #856494

    Hi,

    Thank you for sharing this suggestion.

    Best regards,
    Jordan Shannon

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.