-
AuthorPosts
-
February 22, 2024 at 12:21 pm #1435117
Hello,
long ago you gave us some CSS code to position the logo on the extreme left and the navigation menu on the extreme right. The problem is that the position of the sub menu is depending on from the width of the viewport, I tried with different media queries, but the positioning is not correct in many cases. Please see screenshots.
Thank you
MauroFebruary 22, 2024 at 12:31 pm #1435119This reply has been marked as private.February 25, 2024 at 6:18 pm #1435368Hi,
Thanks for the screenshot and the link to your site, there are a lot of customizations for the mega menu and looks complex, I tried to make some adjustments but they were not changing on the frontend as I would expect, are you sure that the FTP login you posted is for your staging site that you linked to? Please check.Best regards,
MikeFebruary 26, 2024 at 11:16 am #1435415This reply has been marked as private.February 26, 2024 at 5:12 pm #1435468Hi,
Thank you, I’m able to login but went I edit the css file I don see a change on the staging site that you set up for us to test on. So I wanted to ensure that the SFTP login you posted does go to your staging site and not your live site. I would not want to think that I was making changes to your staging site when in fact your live site was getting messed up. Please double check. If it is correct I assume that I can disable all of the plugins on the staging site and see if that helps with my research, correct?Best regards,
MikeFebruary 26, 2024 at 6:15 pm #1435482This reply has been marked as private.March 2, 2024 at 7:28 pm #1436055Hi,
Thank you for your patience this was very hard to sort out with all of your custom css, but I believe that I have it the best that I can get it. The mega menu is not 100% width, it is the default 95% width, this is best and now looks correct at the different screen sizes, otherwise the placement will not be correct.
Please adjust to suit, then clear your browser cache and check.Best regards,
MikeMarch 6, 2024 at 5:36 pm #1436515Thank you Mike,
mega menu looks correct, but there are other related issues with the logo, that in some widths is not anymore correctly aligned to the extreme left, and the top bar and the mini cart that in some widths is not anymore correctly aligned to the extreme right and in one extreme case disappears.Please see screenshots
Thank you
MauroMarch 8, 2024 at 5:51 pm #1436753And also in the small top bar the div with social icons, ul.noLightbox.social_bookmarks.icon_count_5, disappear below 990px
I don’t know if it is related with the changes made
Thank you
MauroMarch 9, 2024 at 3:09 pm #1436809Hi,
Thanks for the screenshots, the css that moves the cart over to the edge for screens between 767px – 1023px is mixed with some other css:
So after you decide what screen sizes you want this to work for, remove this line and them create a new rule, this is an example if you want it to work up to 1440px:@media only screen and (min-width: 767px) and (max-width: 1440px){ .responsive #top #wrap_all .main_menu { right: -80px !important; } }
But I would advice to not do this because when elements are too close to the edge of the screen you may get warnings from page audit tools, as they recommend some space around items. Allowing the default theme placement is probably the best choice, but it’s up to you.
If you want the icons in the top bar to show on mobile try this css:@media only screen and (min-width: 768px) and (max-width: 989px){ .responsive.html_mobile_menu_tablet #top #header #header_meta .social_bookmarks { display: block; } } @media only screen and (max-width: 767px) { .responsive #top #header .social_bookmarks { display: block; } } @media only screen and (max-width: 479px){ .responsive #top #wrap_all #header .social_bookmarks, .responsive #top #wrap_all #main .av-logo-container .social_bookmarks { display: block; padding-left: 13%; } }
Best regards,
MikeMarch 28, 2024 at 3:29 pm #1438549Thank you Mike, as always very professional
As it is very annoying working with css in the mega menu because as you click out and go to inspect in the developers tool the menu close, I like to share what I found here:
https://stackoverflow.com/questions/64456886/emulate-a-focused-page-option-not-available-in-chrome-developer-tools/64456947#64456947
So if you click on “Emulate a focused page” you can keep the mega menu opened while working in the developers tool
MauroMarch 28, 2024 at 4:11 pm #1438551March 28, 2024 at 4:13 pm #1438552yes please
March 28, 2024 at 9:02 pm #1438569 -
AuthorPosts
- The topic ‘Sub menu positioning’ is closed to new replies.