Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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
    Mauro

    #1435119
    This reply has been marked as private.
    #1435368

    Hi,
    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,
    Mike

    #1435415
    This reply has been marked as private.
    #1435468

    Hi,
    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,
    Mike

    #1435482
    This reply has been marked as private.
    #1436055

    Hi,
    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,
    Mike

    #1436515

    Thank 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
    Mauro

    #1436753

    And 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
    Mauro

    #1436809

    Hi,
    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:
    Enfold_Support_4965.jpeg
    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,
    Mike

    #1438549

    Thank 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
    Mauro

    #1438551

    Hi,
    Thanks for sharing, shall we close this thread then?

    Best regards,
    Mike

    #1438552

    yes please

    #1438569

    Hi,
    Glad that we could help,thanks for using Enfold.

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Sub menu positioning’ is closed to new replies.