-
AuthorPosts
-
February 26, 2020 at 10:03 am #1188002
Hello I need to make some changes in the way the mobile menu is shown. It is very complicated to explain (english is my third language) so I am attaching a link to my website and screenshots of what I need to achieve – I am sure it easier this way! :)
THANKS!
February 26, 2020 at 10:52 pm #1188293any luck with this?
February 27, 2020 at 3:26 pm #1188493Hi,
Please go to Enfold theme options > Main Menu > Burger/Mobile Menu > Menu Overlay Style and choose “Sidebar Flyout Menu (classic)” and then add following code to Quick CSS
.av-burger-overlay li.menu-item-24 a { border-left: 8px solid #F7A713!important; } .av-burger-overlay li.menu-item-10 a { border-left: 8px #2D509F solid; } .av-burger-overlay li.menu-item-11 a { border-left: 8px #F4E600 solid; } .av-burger-overlay li.menu-item-12 a { border-left: 8px #E6341F solid; } .av-burger-overlay li.menu-item-16 a { border-left: 8px #F7A713 solid; } .av-burger-overlay li.menu-item-13 a { border-left: 8px #2D509F solid; } .av-burger-overlay li.menu-item-14 a { border-left: 8px #F4E600 solid; } .av-burger-overlay li.menu-item-15 a { border-left: 8px #E6341F solid; }
Best regards,
YigitFebruary 27, 2020 at 3:59 pm #1188502hi thanks for this but unfortunately is not working – you can check in the link down here
February 27, 2020 at 4:05 pm #1188503Hi,
Please create temporary admin logins and post them here privately.
Regards,
YigitFebruary 27, 2020 at 4:13 pm #1188510you can access the staging website I already created for you guys :)
thanks!
February 27, 2020 at 4:32 pm #1188515Hi,
I moved your code to bottom of Style.css file and added !important rule. Please flush cache and review your website :)
Best regards,
YigitFebruary 27, 2020 at 4:36 pm #1188518thanks it seems better but it still not like what I need to achieve – I am posting a couple of screenshots
February 28, 2020 at 9:58 am #1188791hi any help? thanks!
March 1, 2020 at 12:33 pm #1189194Hi,
Sorry for the late reply and thank you for the login to the staging site, I see you have the same css in your child theme stylesheet and in your Quick CSS, which can make it a little tricky to manage your styles, you may wish to keep your css in one place.
Anyways I commented out these two lines in both places:/*#top #header_main > .container .main_menu ul:first-child > li > a { line-height: 155px !important; }*/ /*#top .header-scrolled #header_main > .container .main_menu ul:first-child > li > a { line-height: 60px !important; }*/
and now your mobile menu items are a natural size and expand well within the group, please clear your browser cache and check.
Best regards,
MikeMarch 2, 2020 at 9:05 am #1189368Hi Mike thanks for your reply but I do need that lines, to make other changes that I can’t publish the website without ;)
that changes were suggested here https://kriesi.at/support/topic/put-a-differente-border-color-on-each-top-menu-item/Is there a way to achieve both of the things I am trying to do?
March 2, 2020 at 1:22 pm #1189419Hi,
Thank you for the feedback, so it looks like those two lines of code were for the desktop menu, on mobile they are making the menu items very large. So I have added#avia-menu
to the code so it will show for desktop and not for mobile.#top #header_main > .container .main_menu ul#avia-menu:first-child > li > a { line-height: 155px !important; } #top .header-scrolled #header_main > .container .main_menu ul#avia-menu:first-child > li > a { line-height: 60px !important; }
It is activate now, please clear your browser cache and check.
Best regards,
MikeMarch 3, 2020 at 11:40 am #1189692Hi Mike, it made some changes in the way it is rendered but it’s still not what I am trying to achieve.
for example, there is that grey column on the left side, there is no logo on the top and the height of the button is not the right one.
I am attaching what I see and what I need to achieve.
Thanks for the help!March 4, 2020 at 10:26 am #1189986any help? please!
March 5, 2020 at 12:18 pm #1190397help!
March 6, 2020 at 10:49 am #1190804Hi,
Sorry for the delay. You can use this css pattern to change the background color of the sub menu items of a specific parent menu item in the mobile menu. The following css in particular will affect the UBI menu item and its child menus.
.av-burger-overlay li.menu-item-10 .sub-menu li a { background: #2D509F !important; }
We can reuse that pattern to change the other menu items. Noticed the li.menu-item-10 in the selector? 10 is the id of the menu item UBI, so to change the Buddhismo menu item, which has a menu id of 24, just copy or duplicate the css code, replace li.menu-item-10 with li.menu-item-24 and replace the background color accordingly.
.av-burger-overlay li.menu-item-24 .sub-menu li a { background: #F7A713!important; }
You should also add the following css code to change the font color of the child menus to white.
.av-burger-overlay li .sub-menu li a .avia-menu-text { color: #ffffff !important; }
Best regards,
IsmaelMarch 6, 2020 at 11:29 am #1190819Hi Ismael, the changes you are providing are not making the menu the way I need it, please review the informations I am giving as I need to exactly achieve what I am sending you. (for example the logo in the upper part, the height of the buttons, and stuff like that. thanks
guys I really appreciate your help but please if you think this is not reachable and there are no options just let me know because I need to put this website online asap…
March 6, 2020 at 2:45 pm #1190884Hi,
Please add following code to Quick CSS field as well
.html_av-overlay-side #top #wrap_all .av-burger-overlay li a { text-transform: uppercase; font-size: 20px; } #top #wrap_all #header #av-burger-menu-ul > li.av-active-burger-items { border-top: 1px solid #333; } #top #wrap_all #header #av-burger-menu-ul > li.av-active-burger-items:last-child { border-bottom: 1px solid #333; } .html_av-submenu-hidden .av-submenu-indicator, .html_av-overlay-side-classic #top .av-burger-overlay li li .avia-bullet { display: none; } .html_av-overlay-side #top #wrap_all .av-burger-overlay li li a { padding-left: 50px; }
If further customization is required, please consider to hire a freelance developer.
Best regards,
YigitMarch 6, 2020 at 4:08 pm #1190907Yigit that’s a great step! Thanks! Is it possibile to have the menu cover completely the width of the page? and to put the website logo on top of the menu? thanks again
March 6, 2020 at 4:18 pm #1190914Hi,
Please add following code to Quick CSS as well
.html_av-overlay-side .av-burger-overlay-scroll { width: 100%; } .av-burger-overlay-inner { background-image: url(LINK-OF-YOUR-LOGO-HERE); background-repeat: no-repeat; background-position: 25px 25px; }
Best regards,
YigitMarch 6, 2020 at 5:45 pm #1190934Great Yigit, that could work, thanks! Now I have just two things to fix:
– how can I have a black line on bottom of the first menu buttons only (the white buttons) so that the other ones (colored) have another color?
– when I am visiting an interior page of the website I see issues in the menu (maybe because I have changed the way to display selected menu item) – how can I fix it?I am sending you a couple of screenshot to explain better
THANKS!
March 7, 2020 at 12:52 am #1191038Hi,
To solve the error in the buttons try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#header_main #av-burger-menu-ul .current-menu-item a { border-bottom-width: 0px !important; }
To have gray lines between the menu items except when the burger sub-menus are open, then the border lines should be white, try this css:
.html_av-overlay-side-classic #top .av-burger-overlay li a { border-bottom-style: solid; border-bottom-width: 1px; border-top-style: solid; border-top-width: 1px; } .html_av-overlay-side-classic #top #wrap_all .av-burger-overlay #av-burger-menu-ul li a { border-color: #ddd; } .html_av-overlay-side-classic #top #wrap_all .av-burger-overlay #av-burger-menu-ul li.av-show-submenu a { border-color: #fff; }
After applying the css, Please clear your browser cache and check.
Best regards,
MikeMarch 21, 2020 at 6:59 pm #1195124It worked thanks Mike!
March 22, 2020 at 5:59 am #1195182 -
AuthorPosts
- You must be logged in to reply to this topic.