-
AuthorPosts
-
August 23, 2017 at 3:44 am #842835
Hello,
I need some assistance with positioning the burger menu icon and the search icon on mobile view.
If I use this code to tell it where I want it to sit it looks great until I open the menu and then it’s broken..av-hamburger { position: relative; top: 100px; right: 25px; } #menu-item-search { position: relative; top: 100px; right: 20px; }
I need to know how to achieve this positioning without breaking the position of the X and the search icon when the mobile menu is open.
I have included log in information and screenshots in the private section for you to have a look at what I am after.August 23, 2017 at 4:58 am #842848Hey Briana,
Please, can you send the screenshots with a link instead the images included the secure note?
Best regards,
John TorvikAugust 23, 2017 at 6:10 am #842869Oh! Sorry, please see private section.
August 23, 2017 at 4:15 pm #843129Hi,
Is the css you added above supposed to apply to desktop only?
Best regards,
Jordan ShannonAugust 24, 2017 at 12:18 am #843326My apologies for the confusion, the css above is within the media query for mobile only – I have many mobile css styles so I was just showing the code within it.
This what I have now, I have changed it slightly but it’s still not correct:
@media only screen and (max-width: 640px){ .html_visible_cart .av-burger-menu-main { padding-right: 40%; margin-top: -25%; } #menu-item-search { position: relative; top: 100px; right: 20px; } }
I need to launch this site tomorrow so it’s becoming quite urgent.
Has anyone had a look at the website on a mobile device and my screenshots and understand the problem? I need to know the proper way to achieve what I have quickly done with the css but without the error.
Thank you for your help
- This reply was modified 7 years, 3 months ago by Briana. Reason: css change
August 28, 2017 at 3:06 pm #844836Hi,
Apologies for the late reply, are you still in need of assistance on this issue?
Best regards,
Jordan ShannonAugust 29, 2017 at 12:10 am #845118Hello and yes, I still need some assistance thank you Jordan.
The website is now live and I have added the login to the private section.I need know how I can keep my mobile menu positioning on tablet and phones without it breaking the menu when open.
The css for everything is a little different now that it’s launched as I had to try my best to see if I could fix this before launch but was unsuccessful.Edit: I have made things work the way I like on tablet by adjusting my own custom css. Just need help with the mobile menu.
- This reply was modified 7 years, 2 months ago by Briana. Reason: Resolved sectionary issue, still need assistance with main issue
August 29, 2017 at 10:55 pm #845486Hi,
Post the CSS you used for the tablet and we can try and adjust it for mobile.
Best regards,
Jordan ShannonAugust 30, 2017 at 12:33 am #845532Here is my mobile and tablet code (I removed anything not affecting the header / menu):
/*TABLET LANDSCAPE*/ @media only screen and (min-width: 990px) and (max-width: 1249px) { /*BURGER MENU ACTIVE */ .av-burger-menu-main { display: block !important; } .main_menu .menu-item { display: none !important; } } @media only screen and (min-width: 990px) and (max-width: 1024px) { .html_header_top.html_header_sticky #header { position: fixed; background-color: white; } #header_meta { min-height: 32px !important; } #header_main { max-height: 100px; } .html_visible_cart .av-burger-menu-main { padding-right: 0px; } .avia-menu.av_menu_icon_beside { margin-top: 45px; } #top nav .social_bookmarks { margin-left: 5px; margin-right: 16px; top: 40% !important; } .avia-menu.av_menu_icon_beside { border: none; } .html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 0px !important; } .logo a img { max-height: 150px !important; padding-top: 5px !important; } #header .widget { right: -16%; position: absolute; top: -45%; } #wrap_all {width: 100% !important; margin:auto !important} #header {width: 100% !important;} #header .container { max-width: 100% !important; } .main_menu { right: 10% !important; } .header_bg { height: auto !important; } #menu-item-search { display:none !important; } } /*TABLET PORTRAIT*/ @media only screen and (min-width: 641px) and (max-width: 990px) { .responsive #top #header { position: static; } .header_bg { height: auto !important; } .logo a img { max-height: 200px !important; } .html_visible_cart .av-burger-menu-main { padding-right: 0px; padding-left: 10px; } .av-main-nav > li { margin-top: -50%; } .avia-menu.av_menu_icon_beside { margin-top: 80px !important; margin-right:0px !important; } #header { width: 100% !important; max-height: 150px !important; } #header_main.container_wrap_logo { z-index: 999 !important; } .av_phone_active_right .phone-info { margin-right: 2% !important; } #header .widget { right: -13% !important; top: -45% !important; } .main_menu .social_bookmarks { right: 6% !important; } #header_meta .container { width: 100% !important; padding: 0px 10px !important; } #header { max-height: 150px !important; } #menu-item-search { display:none !important; } .responsive.html_mobile_menu_tablet.html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 0px !important; } } /*--MOBILE STYLES--*/ @media only screen and (max-width: 640px){ #header_main.container_wrap_logo, #top #header_meta { max-height: 200px !important; } #menu-item-search { position: relative; top: 0px; right: 15%; margin-top: 65% !important; } .html_visible_cart .av-burger-menu-main { padding-right: 40%; margin-top: -28% !important; } #top #header_meta li, #top #header_meta .phone-info { font-size: 12px !important; } .responsive #top .logo { width: 50% !important; } div .logo { margin-left: -1% !important; } #header .widget { display:none !important; } .space { margin-top: 8% !important; margin-bottom: 4% !important; min-width: 200px !important; } .book-now-btn, .calendar-btn { border:none !important; } .calendar-btn { padding: 9px 35px 8px 30px !important; margin-left: 10px !important; } .number { font-size: 20px; clear: right !important; display:block !important; } } /*mobile landscape*/ @media only screen and (min-device-width: 320px) and (max-device-width: 640px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) { #menu-item-search { right: 0px !important; margin-top: 20% !important; } .html_visible_cart .av-burger-menu-main { padding-right: 10% !important; margin-top: 20% !important; } .avia-menu.av_menu_icon_beside { padding-right: 25px; margin-right: 20px !important; } .main_menu .social_bookmarks { margin-top: 10% !important; padding-right: 40px !important; } }
August 30, 2017 at 12:37 am #845534Hi,
I’m not sure if you have yet, but attempting the adjustment under:
@media only screen and (max-width: 767px) { /* css here */ }
This might just work.
Best regards,
Jordan ShannonAugust 30, 2017 at 12:50 am #845536Hi Jordan,
Nope doesn’t change anything – still getting on mobile (and using my computer to simulate mobile to be sure my cache is clear) the’ X’ icon and the Magnifying Glass icon sitting over-top of the slide-out menu items as you scroll (when the menu is open of course).
Is there a way we can make these items sit in a different place (maybe to the furthest left of the slide out menu items) when the mobile slide-out menu is open and then return to where they are now when the menu is closed?
August 30, 2017 at 5:34 am #845575Hi,
Seeing as how this appears to be one icon with z-index applied, it may be more efficient to fix this with a combination of js and css. For example, if the menu is open change the margin height of the icons, else keep the same. Are you familiar with method. If not, please provide ftp info so I can begin working this out.
Best regards,
Jordan ShannonAugust 30, 2017 at 6:09 am #845602You are very welcome to have a crack it – I really appreciate your help :) – I know you will be careful but I must ask that you be very careful as this is a high traffic website with a very important online booking system (that takes payments).
Please see the private section for FTP access:
September 4, 2017 at 6:43 am #847521Hi,
That seems to be a lot of css modifications just to adjust the menu position. Could you please provide a screenshot of the header layout that you want on mobile view?
Best regards,
IsmaelSeptember 4, 2017 at 6:47 am #847523Hi Ismael,
I don’t want to come across ungrateful or rude but I have posted the images of what I want my mobile header to look like and my problem twice now and each time I had to wait again for someone to assess the problem.
I know there are a lot of custom header styles, but as I said I tried to remedy the issue myself in the meantime due to not knowing how to acheive this the most suitable way.
Please do not bump me back down, I have given my login details, screenshots, my active css and as detailed as I could be with descriptions on what I need help with.
I have been able to adjust the old enfold burger menu in the past but with the new burger menu position and functionality I just don’t know how to go about it.
September 8, 2017 at 6:12 am #849392Hi,
I’m sorry I didn’t notice the screenshots. Please add this code in the Quick CSS Field.
@media only screen and (max-width: 767px) { .html_visible_cart .av-burger-menu-main { top: 80px; right: 40%; } #menu-item-search { right: 40%; margin-top: 80px !important; } }
You might need to create another css media query fpr smaller screen to adjust the position of the elements.
Best regards,
IsmaelSeptember 8, 2017 at 6:41 am #849401That O.K. Like I said I wasn’t trying to come across as rude I am just a little frustrated is all.
This didn’t work :( It moves my closed burger menu and icon into the wrong place and doesn’t fix the x and search icon sitting on top of the menu items when scrolling down the open mobile menu.- This reply was modified 7 years, 2 months ago by Briana. Reason: I thought I solved it - Was wrong
September 8, 2017 at 6:56 am #849418Hi,
This didn’t work :( It moves my closed burger menu and icon into the wrong place and doesn’t fix the x and search icon sitting on top of the menu items when scrolling down the open mobile menu.
Please check if there are css modifications that is affecting the position of the icons such as margins, paddings, top/right etc, aside from the modification above. Add the following css code inside the css media query to adjust the position of the search icon and mobile icon when the mobile menu is active.
#av-burger-menu-ul { padding-top: 100px !important; } .av-burger-overlay-active #menu-item-search { margin-top: 0 !important; top: -75px; } .av-burger-overlay-active .av-burger-menu-main { margin-top: -75px !important; top: -40px !important; }
Best regards,
IsmaelSeptember 14, 2017 at 1:01 am #851796This is a lifesaver! THANK YOU.
I swear I removed my old menu/search icon position styles before adding yours before but I must have made a mistake. This worked with both sets of css and a few adjustments to the values. I can definitely use this in the future too – again, thanks for understanding my frustration and sticking with it.You can close this ticket.
September 14, 2017 at 8:58 am #851915 -
AuthorPosts
- The topic ‘Burger Menu + Search Icon Position Mobile’ is closed to new replies.