-
AuthorPosts
-
March 1, 2017 at 8:58 pm #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 JaroljmekMarch 4, 2017 at 12:23 am #755412Hey jaroljmek,
Could you please provide a link to the site and admin info so that I can look into this further.
Best regards,
Jordan ShannonMarch 4, 2017 at 12:43 am #755423Hi 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
March 4, 2017 at 12:55 am #755425Oh and here’s the WP login…
March 4, 2017 at 1:21 am #755430Hi,
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 ShannonMarch 4, 2017 at 10:20 am #755567Hi 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
ChristianMarch 8, 2017 at 10:07 pm #758053Hi,
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 ShannonMarch 8, 2017 at 10:19 pm #758058Hi 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
March 8, 2017 at 11:02 pm #758071Hi,
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- This reply was modified 7 years, 9 months ago by Jordan Shannon.
March 13, 2017 at 6:43 pm #760185hm – 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)March 13, 2017 at 6:48 pm #760193Hi 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
March 13, 2017 at 6:54 pm #760195you mean the whole with overlay of content?
Or only the solution that hamburger works in all cases?March 13, 2017 at 7:27 pm #760215Hi
Actually both would be great.
Thank you.
Christian
March 13, 2017 at 9:17 pm #760251For 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; } }
March 13, 2017 at 9:19 pm #760253ah – and by the way the logo in the hamburger menu is a home link with image instead of text.
March 14, 2017 at 3:16 pm #760759Hi 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
March 14, 2017 at 3:19 pm #760762Hey!
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,
YigitMarch 14, 2017 at 4:08 pm #760797Hi!
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
March 14, 2017 at 4:14 pm #760806 -
AuthorPosts
- The topic ‘Mobile Hamburger Menu & Sticky Header Opacity’ is closed to new replies.