Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #860921

    Hi I would like to know if there is the possibility of displaying the burger menu together with the full overlay menu display only in the home page. In the rest of the pages I would like to keep the default top menu with single items displayed as text.

    Thanks

    #861015

    Hey Elena,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .page-id-3338 <---you home page class .av-burger-menu-main {
      display: block;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #861025

    Hi Victoria, sorry I was not very clear in my previous message. What I need is to have the standard text menu on top for the whole web site, except for the home page, where I wish to display only the burger menu.

    I imagine that I could use your code above and hide the standard menu. Is that right?

    I could therefore hide each single

  • class=menu-ietm-xxxx, and keep visible only the class=av-burger-menu, however it’s a mess as everytime I add a new menu voice I should change my css. Is there a simplest way to do it?

    Thanks very much

    • This reply was modified 7 years, 2 months ago by elenapoliti.
#861962

Hi elenapoliti,

No the code above shows the burger along with the menu, that’s how I understood the original post. Thanks for the clarification.

Could you please give us a link to your website, we need more context to be able to help you.

Best regards,
Victoria

#904897

Do you have a answer for that, for all ?
thanks

#904905

I actually decided to have only a burger menu, since I didn’t find any better solution.

#904910

so no answer from the moderator ? thanks a lot

#904962

I tried something, half good. It works, but I can’t get it to NOT work on the homepage… so still useless. Any idea ?
In the functions.php file :


if ( !is_front_page() ) {	
	echo'
		<style type="text/css">
		.js_active.html_burger_menu #avia-menu > li {
			display: block !important
			}
			
		.js_active.html_burger_menu #avia-menu .av-burger-menu-main {
			display: none !important
			}
		</style>
		';
    }
  • This reply was modified 6 years, 10 months ago by precarre.
#904973

IT WORKS!!!!!!
It works just fine putting it in the template-builder.php file


<?php
	if ( !defined('ABSPATH') ){ die(); }
	
	global $avia_config, $post;

	if ( post_password_required() )
    {
		get_template_part( 'page' ); exit();
    }
    

/***************************************************///
/****** MENU BURGER OFF IF NOT NOT NOT HOMEPAGE.  *///

	if ( !is_front_page() ) {	
		echo'
			<style type="text/css">
			.js_active.html_burger_menu #avia-menu > li {
				display: block !important
				}
				
			.js_active.html_burger_menu #avia-menu .av-burger-menu-main {
				display: none !important
				}
			</style>
			';
	    }		

/***************************************************///
/***************************************************///
/***************************************************///
#904976

NB : works better in the header.php

#905438

Hi,

Sorry for the late response and glad that you found the solution :)

Best regards,
Nikko

#1019021

I tried your code and it works. Only thing is, when entering the site in mobiles, then the burger also disappears in all pages except home. How to keep burger in every page in mobile? Thanx!

#1019056

this should help

/***************************************************///
/****** MENU BURGER OFF IF NOT NOT NOT HOMEPAGE. *///

if ( !is_front_page() ) {
echo’
<style type=”text/css”>

@media all {
@media only screen and (min-width: 860px) {

.js_active.html_burger_menu #avia-menu > li {
display: block !important
}

.js_active.html_burger_menu #avia-menu .av-burger-menu-main {
display: none !important
}

}
}

</style>
‘;
}

/***************************************************///
/***************************************************///

#1019165

That is just perfect!

Thanx for the quick response ;)

#1019397

Hi jjsabatino,

Glad that it worked :)


@precarre
: thanks for helping out :)

Best regards,
Nikko

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