Tagged: Hamburger-Menu
-
AuthorPosts
-
February 6, 2018 at 4:11 pm #908656
After update theme a hamburger menu is visible in the menu on a full screen (no tablet or cellphone). I’ve tried to disable, without result.
On other sites, older version Enfold, same settings, it’s all ok. What may be the cause of this?- This topic was modified 6 years, 9 months ago by Els.
February 6, 2018 at 8:40 pm #908791Hey Els,
Can you please check if you have that code into the site from previously?
@media only screen and (max-width: 1024px) {
.main_menu .avia-menu, #header_main_alternate, .fallback_menu{display:none;}
.container #advanced_menu_toggle, #advanced_menu_hide{display:block;}
}if yes – please remove the code.
Best regards,
BasilisFebruary 7, 2018 at 12:20 pm #909063Thanks Basilis for looking into this issue!
I can’t find the exact code you mention. But this is what the code of the header is.
Can I make changes in this?Thanks again, best regards,
ElsThe code for the heading is:
<?php
if ( !defined(‘ABSPATH’) ){ die(); }global $avia_config;
$style = $avia_config[‘box_class’];
$responsive = avia_get_option(‘responsive_active’) != “disabled” ? “responsive” : “fixed_layout”;
$blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;
$av_lightbox = avia_get_option(‘lightbox_active’) != “disabled” ? ‘av-default-lightbox’ : ‘av-custom-lightbox’;
$preloader = avia_get_option(‘preloader’) == “preloader” ? ‘av-preloader-active av-preloader-enabled’ : ‘av-preloader-disabled’;
$sidebar_styling = avia_get_option(‘sidebar_styling’);
$filterable_classes = avia_header_class_filter( avia_header_class_string() );
$av_classes_manually = “av-no-preview”; /*required for live previews*/
$av_classes_manually .= avia_is_burger_menu() ? ” html_burger_menu_active” : ” html_text_menu_active”;?><!DOCTYPE html>
<html <?php language_attributes(); ?> class=”<?php echo “html_{$style} “.$responsive.” “.$preloader.” “.$av_lightbox.” “.$filterable_classes.” “.$av_classes_manually ?> “>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<?php
/*
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
* located in framework/php/function-set-avia-frontend.php
*/
if (function_exists(‘avia_set_follow’)) { echo avia_set_follow(); }?>
<!– mobile setting –>
<?phpif( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>’;
?><!– Scripts/CSS and wp_head hook –>
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/wp_head();
?>
</head>
<body id=”top” <?php body_class($style.” “.$avia_config[‘font_stack’].” “.$blank.” “.$sidebar_styling); avia_markup_helper(array(‘context’ => ‘body’)); ?>>
<?php
if(“av-preloader-active av-preloader-enabled” === $preloader)
{
echo avia_preload_screen();
}?>
<div id=’wrap_all’>
<?php
if(!$blank) //blank templates dont display header nor footer
{
//fetch the template file that holds the main menu, located in includes/helper-menu-main.php
get_template_part( ‘includes/helper’, ‘main-menu’ );} ?>
<div id=’main’ class=’all_colors’ data-scroll-offset='<?php echo avia_header_setting(‘header_scroll_offset’); ?>’>
<?php
if(isset($avia_config[‘temp_logo_container’])) echo $avia_config[‘temp_logo_container’];
do_action(‘ava_after_main_container’);?>
February 7, 2018 at 12:40 pm #909078Hi Basilis,
Also found in functions:
/* 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 )
{
global $avia_config;$location = ( is_object( $args ) && isset( $args->theme_location ) ) ? $args->theme_location : ”;
$original_location = isset( $avia_config[‘current_menu_location_output’] ) ? $avia_config[‘current_menu_location_output’] : ”;/**
* Allow compatibility with plugins that change menu or third party plugins to manpulate the location
*
* @used_by Enfold config-menu-exchange\config.php 10
* @since 4.1.3
*/
$location = apply_filters( ‘avf_append_burger_menu_location’, $location, $original_location, $items , $args );if( ( is_object( $args ) && ( $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.'”>
<span class=”av-hamburger av-hamburger–spin av-js-hamburger”>
<span class=”av-hamburger-box”>
<span class=”av-hamburger-inner”></span>
‘.__(‘Menu’,’avia_framework’).’
</span>
</span>
‘;
}
return $items;
}
}if(!function_exists(‘avia_is_burger_menu’))
{
function avia_is_burger_menu ()
{
$burger_menu = false;if(avia_get_option(‘menu_display’) !== “burger_menu”) return $burger_menu;
if(avia_get_option(‘header_position’) !== “header_top”) return $burger_menu;//if(avia_get_option(‘header_position’) !== “header_top”) return $burger_menu;
//if(strpos(avia_get_option(‘header_layout’), ‘main_nav_header’) === false) return $burger_menu;return true;
}
}February 7, 2018 at 1:17 pm #909105Hi,
Can you try adding this css code in Quick CSS (located in ENfold > General Styling):
.av-burger-menu-main { display: none; }
Let us know if this helps.
Best regards,
NikkoFebruary 7, 2018 at 1:36 pm #909118Happy news, Nikko. It works! Thanks.
I assume that I will have to fill in again after each update of Enfold?
Since I don’t use child theme on sites with so liitle info etc.
By the way it’s a demo site.Best regards,
Els
- This reply was modified 6 years, 9 months ago by Els.
February 7, 2018 at 2:18 pm #909164Hi Els,
No, css in the Quick css should stay, it does not get overwritten.
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 7, 2018 at 2:20 pm #909169Thanks you all. I’m happy again.
-
AuthorPosts
- You must be logged in to reply to this topic.