Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #753951

    Hi Team Kriesi

    Great update to 4.0. Thanks a bunch! No doubt you are all super busy but a quick couple of questions:

    1. New Hamburger Menu
    Is there an option yet with the new update for retaining the new hamburger menu icon on mobile screens?

    2. Sticky Header Transparency
    Please can you give me the CSS to remove the slight transparency of the Sticky Header when in Default Header mode that does not affect the Transparent Header?

    Thanks very much indeed.
    Christian Jaroljmek

    #755412

    Hey jaroljmek,

    Could you please provide a link to the site and admin info so that I can look into this further.

    Best regards,
    Jordan Shannon

    #755423

    Hi Jordan

    Thanks for your message.

    On this site the desktop hamburger reverts to the old mobile menu and mobile menu icon in mobile view. I was hoping that Enfold might change this behaviour to feature the new hamburger menu on all screen views.

    Is there a workaround possibly to retain the new burger icon and menu on all screen views?

    Thanks!

    Christian Jaroljmek

    #755425

    Oh and here’s the WP login…

    #755430

    Hi,

    Please add this to the very end of your functions.php file.

    add_filter(‘avf_default_icons’,’avia_replace_standard_icon’, 10, 1);
    function avia_replace_standard_icon($icons) {
    $icons[‘mobile_menu’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue811’);
    return $icons;
    }

    Let me know if this works.

    Best regards,
    Jordan Shannon

    #755567

    Hi Jordan

    Thanks for this. I’ve tried putting that code in the functions.php file but the old icon is still there – no change.

    Would you guys consider this as a key feature update given the importance of mobile screen view?

    Is there any other workaround?

    Thanks
    Christian

    #758053

    Hi,

    Sorry for the late reply. I want I understand you 100% as to what you need before offering further suggestions. You want the menu icon to be the exact same as the desktop? You don’t like the mobile version with the three dots on the left. Correct?

    Best regards,
    Jordan Shannon

    #758058

    Hi Jordan

    Yes correct. And I think this is the most requested feature on Enfold at the moment!

    Two scenarios:

    1. Normal text menu on desktop
    At tablet and mobile the menu switches to the new hamburger icon, not the old dotted icon and menu.

    2. New hamburger Icon menu on desktop
    At tablet and mobile the menu remains the same new hamburger icon.

    Having gone through many threads this upgraded mobile menu/header feature would really nail the competition for Enfold!

    If there’s a workaround for now, great, but look forward to a theme update on this.

    Thanks

    Christian

    #758071

    Hi,

    Please see the following link below from a previous user. This solution should work for you provided you use media queries to target mobile and tablet screens:

    https://kriesi.at/support/topic/different-icon-for-hamburger-menu/

    If you would like me to login and try to implement this for you let me know.

    Best regards,
    Jordan Shannon

    #760185

    hm – i thought he liked to have the hamburger menu for both cases : wide screens and in responsive case

    this is possible : see here Link
    make the browser window smaller and see that hamburger is allways in action.
    (There are some other changings on Hamburger here too – (not 100% width etc – overlay of content etc)

    #760193

    Hi Guenni

    Thanks for you message.

    How did you achieve the menu on your site https://webers-testseite.de/elegant/

    I would love to know!!

    Thanks

    Christian

    #760195

    you mean the whole with overlay of content?
    Or only the solution that hamburger works in all cases?

    #760215

    Hi

    Actually both would be great.

    Thank you.

    Christian

    #760251

    For the overlay we need a container surrounding the whole thing which could be adressed well.
    So best will be to make a copy of header.php in the child-theme folder.
    Open it and insert that new container just after the opening wrap_all container to have than:

    <div id='wrap_all'>
    <div class='mega-bg'></div>

    so we can have than in quick css :

     .mega-bg {
        width:100%;
        height:500%;
        position:absolute;
        display:none;
        z-index:0;
        transition: all 1s linear 0;
        opacity: 0
        }  
    
     .av-burger-overlay-active .mega-bg {
        width:100%;
        height:500%;
        background:#fff;
        position:absolute;
        display:block;
        z-index:500;
        transition: all 1s linear 0;
        zoom: 1;
        filter: alpha(opacity=80);
        opacity: 0.8;
        }

    you see here that mega-bg container is just a “super container ” and in normal mode with opacity zero !
    when hamburger menu opens there is an extra class : .av-burger-overlay-active.
    we can now use this to change opacity and background-color (you can use here every color you like even#000)

    here is the rest with some comments:

    /******** some logo adjustments *************/
    
    .main_menu .avia-menu,#header_main_alternate,.fallback_menu {
    display:block;
    float:right;
    }
    
    .responsive #top #wrap_all .container {
    max-width:95%;
    width:95%;
    }
    
    .responsive #top #wrap_all #header {
    background-color:#fff;
    opacity:1;
    position:fixed;
    width:100%;
    }
    
    .responsive #top .logo {
    float:left;
    position:absolute;
    top:50%!important;
    transform:translateY(-50%);
    width:65%;
    }
    
    #menu-item-burger > a {
    padding-right:8px!important;
    }
    
    #advanced_menu_toggle {
    display:none!important;
    }
    
    /******** if you like to have infront of your menu-items some icons. *************/
    
    #av-burger-menu-ul li#menu-item-437 a .avia-menu-text::before {content: "\e821 \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-438 a .avia-menu-text::before {content: "\e83c \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-439 a .avia-menu-text::before {content: "\e857 \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-440 a .avia-menu-text::before {content: "\e80b \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-441 a .avia-menu-text::before {content: "\e805 \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-589 a .avia-menu-text::before {content: "\e80e \00a0";font-family: entypo-fontello; color: #0088BD}
    #av-burger-menu-ul li#menu-item-703 a .avia-menu-text::before {content: "\e81e \00a0";font-family: entypo-fontello; color: #0088BD}
    
    /********. some changings of hamburger menu.  **********/
    
    .av-burger-overlay {
        box-shadow: -2px 0 10px #bbb;
        left: auto;
        max-width: 400px;
    }
    
    .av-burger-overlay-inner {
        background: #fff url("url to a background image") no-repeat scroll 0 0 / cover ; 
    }
    
    .av-burger-overlay-active #top .av-hamburger-inner, .av-burger-overlay-active #top .av-hamburger-inner::before, .av-burger-overlay-active #top .av-hamburger-inner::after {
        background-color: #0088BD !important;
    }
    
    #av-burger-menu-ul li a {
        color: #000 !important;
    }
    
    #av-burger-menu-ul li a .avia-menu-text {
        text-shadow: 1px 1px 3px #333;
    }
    
    #av-burger-menu-ul li a:hover .avia-menu-text {
        color: #0088BD;
        font-weight: 400;
    }
    
    /******** if you don't like to have fullscreen hamburger active menu when under a given screenwidth *************/
    			
    @media only screen and (max-width: 880px) {
        .av-burger-overlay {
        box-shadow: none;
        left: 0 !important;
        max-width: 100% !important;
    }
    }
    #760253

    ah – and by the way the logo in the hamburger menu is a home link with image instead of text.

    #760759

    Hi there

    Thank you for this. I will try and understand it fully!

    If I only want to replace the old mobile menu dotted icon with the new hamburger icon could I achieve this with CSS?

    Thank you.

    Christian

    #760762

    Hey!

    It would be easier if you referred to this post – http://kriesi.at/documentation/enfold/change-icon-used-for-standard-theme-elements/


    @guenni007
    Thanks for your help! :)

    Best regards,
    Yigit

    #760797

    Hi!

    Thanks for that.

    I think I’ll wait for the next update. I think many users are hoping that you will upgrade the mobile menu experience soon!

    Many thanks

    Christian

    #760806

    Hi!

    Alright then! I am marking this thread as resolved. Please feel free to start a new thread if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Mobile Hamburger Menu & Sticky Header Opacity’ is closed to new replies.