Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi, this is an error by an Enfold function.

    I solved the problem by adding following lines to the function.php (to the child themes functions.php).

    
    
    /* Append the burger menu */
    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) )
    	    {
    	        $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;
    	}
    }
    
    
    • This reply was modified 7 years, 4 months ago by maschmo.
Viewing 1 replies (of 1 total)