Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #1010888

    Hi guys,
    is it possible to set Enfold to have the burger menu only in home page and maintain standard menu in other pages?

    Thanks

    #1010900

    Hey jexjex,

    Yes I believe this is possible, but will take a bit of css to pull off. Please provide a link to the site/page in question so we can inspect this further.

    Best regards,
    Jordan Shannon

    #1011196
    This reply has been marked as private.
    #1011380

    Hi,

    Thank you for using Enfold.

    To achieve this you have to modify themes\enfold\header.php around line 28 you find:

    
    $av_classes_manually   .= avia_is_burger_menu() ? " html_burger_menu_active" : " html_text_menu_active";
    

    Replace this line with:

    
    	$is_burger_menu = apply_filters( 'avf_burger_menu_active', avia_is_burger_menu(), 'header' );
    	$av_classes_manually   .= $is_burger_menu ? " html_burger_menu_active" : " html_text_menu_active";
    

    We will add this to core in (one of) the next updates.

    Then at the bottom of functions.php of the child theme (or parent theme) add:

    
    add_filter('avf_burger_menu_active', 'custom_burger_menu_active', 10, 2 );
    function custom_burger_menu_active( $active, $context ) 
    {
    	if( 2998 == avia_get_the_ID() )
    	{
    		return true;
    	}
    	
    	return $active;
    }
    

    and replace 2998 with the page-id of your homepage.

    In Enfold-> Main Menu -> General -> Menu Items for Desktop select “Display as text”.

    If you have problems updating the files we need a WP admin account and ftp access to your server and we can do it for you.

    Best regards,
    Günter

    #1011440

    Hi Günter,

    I have follow your tutorial but unfortunatelly I still have some trouble.
    In home page the burger menu appear only after I have scroll the page. I wish I have wisible since the page has loaded.
    Preferibly would be great to have the burger on the left. I suppose it is quite simple doing it using CSS.

    I have attached some images in the private section.

    You have also access to the front end if you want to have a look.
    Thanks a mil for your help.

    #1011685

    Hi,

    The link you provided above does not show an Enfold page.

    Please create a temporary admin account for us so we can check the backend. You can post it in the private content area – and also the link to the admin login.

    Best regards,
    Günter

    #1011688

    Hi Günter,
    you have now access to the site.
    Thanks,
    Mirko

    #1011746

    Hi,

    Cannot login – can you please check the credentials.

    Best regards,
    Günter

    #1011756

    My fault, now should be ok and you can have access to the site.
    Thanks

    • This reply was modified 6 years, 2 months ago by jexjex.
    #1011815

    Hi,

    Still not work for me – same as before:

    ERRORE: nome utente non valido. È stata persa la password?

    Best regards,
    Günter

    #1011870

    Just checked and it works.
    have you changed the Host file?
    I gave you details before.

    #1012191

    Hi guys. News? Are you able to log in?

    #1012265

    Hi,

    Still not able to login – see private content

    Best regards,
    Günter

    #1012274

    Hi Günter
    you didn’t reply my question.

    Have you changed the file host?
    The website is not visible without it. You probably see the old one.

    You have details in private content.

    #1012724

    Guys please, any news?

    #1012917

    Hi,

    Unfortunately not yet – our development team does have an update but not yet finished for release.

    Best regards,
    Basilis

    #1013316

    Hi,

    Günter and I tried to log in (with modified host files) but we can’t reach your website. Please provide a link to a server where we can log in (without modifying our host files). 
    Best regards,
    Peter

    #1013522

    Hi Dude,
    you can find info you have required in the private content
    Thanks a mil

    • This reply was modified 6 years, 2 months ago by jexjex.
    #1013571

    Hi,

    In home page the burger menu appear only after I have scroll the page. I wish I have wisible since the page has loaded.

    You have selected “Header is invisible and appears once the users scrolls down ” on the “Home” page. Change this setting.

    Preferibly would be great to have the burger on the left. I suppose it is quite simple doing it using CSS.

    Select the option “Logo right, Menu left” to change this

    (WP Dashboard -> Enfold -> Header -> Menu and Logo Position

    Best regards,
    Günter

    #1013588

    Hi Günter,
    solved first issue. Very sorry to have waste so much of your time for a simple setting.

    For want it concern the position of the logo the solution you have proposed it doesn’t suit to me at first glance.
    In fact it applies to all the pages. I need to change only the home page.

    thanks

    #1013974

    Hi,

    Revert the logo and menu position to the previous option and then add this filter in the functions.php file to adjust the header settings of the home/front page.

    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 99, 1);
    function avf_header_setting_filter_mod($header_settings) {
    	if ( is_front_page() ) {
            foreach(explode(" ",$header_settings['header_layout']) as $layout) {
                if(strpos($layout, 'logo') !== false) {
                    $header_settings['header_class'] = str_replace('av_'.$layout, 'av_logo_right', $header_settings['header_class']);
                }
    
                if(strpos($layout, 'menu') !== false) {
                    $header_settings['header_class'] = str_replace('av_'.$layout, 'av_menu_left', $header_settings['header_class']);
                }
            }
    	}
    	return $header_settings;
    }

    Best regards,
    Ismael

    #1015750

    Thnks Ismael!

    #1015868

    Hi jexjex,

    Glad we could help :)

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

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