• Resolved boppar

    (@boppar)


    After been using Opencart for many years I’ve started recently with Woocommerce. This far I like it a lot. I’m using Storefront by Automattic.

    I have a problem. In the primary menu/Navigationmenu the menu is divided into two rows and that looks weird. It gets divided because there isn’t enough space for just one row. The purchase sum and cart icon takes up a lot of the space.

    Is there any good solution to this problem withou changing theme?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hi @boppar – that’s super exciting that you’re using WooCommerce. We always love nice feedback.

    Let’s see if we can fix your problem. Do you have a link to your website for us? It might be that your font is too big and there are too many items in your menu to fit on one line. We can fix that with a bit of custom CSS.

    But before we get to that I’d like to first have a look at that site of yours.

    Thread Starter boppar

    (@boppar)

    I think this image shows what I want to do:
    https://ibb.co/SmHCsDT

    I would try some CSS like this in Appearance->Customize->Additional CSS

    .storefront-primary-navigation .site-header-cart {
      margin-top: -220px;
    }
    
    .storefront-primary-navigation .main-navigation {
      width: 100% !important;
    }

    It seems to work ok when testing on the default theme, though you may need to adjust the -220px value depending upon your particular setup.

    Thread Starter boppar

    (@boppar)

    Thanks Jarret!
    It works fine when using the Storefront navigation menu.

    However I’m using the Max Mega Menu. With that plugin the menu doesn’t get wider, it stays the same.
    Any idea how to solve that?

    Change .main-navigation over to .mega-menu-wrap and it may work. At least from a quick test I did, never used Max Mega Menu before so not familiar with it. If that doesn’t work, we may need a link to your site to see more specifics like Job mentioned.

    Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    @boppar the Max Mega Menu is a product that’s not made by the team behind Storefront. They will likely use a different set of CSS classes making it challenging for us to help you out, especially if you’re only sharing screenshots.

    I’d advise to either get help from their support team. Or opt for the Mega-Menu extension that’s part of Storefront Powerpack.

    Thread Starter boppar

    (@boppar)

    Thanks guys.
    I think I’ll just try to have less menu items.

    Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Sounds good! Have a good one! I’ll mark this thread as resolved.

    • This reply was modified 5 years ago by Job a11n.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Primary menu/Navigationmenu, the menu is divided into two rows. Any solution?’ is closed to new replies.