Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1008689
    Valerio
    Participant

    Hi,
    i have added some menu items to my main menu navbar, now upon resizing of the window, the menu goes on two lines before being turned into the icon. The icon menu appears at 890px wide but I’d like this to happen at 1010px to avoid the two lines menu.
    Please check the attached screenshot.

    How can i do that?

    #1008691
    Valerio
    Participant
    This reply has been marked as private.
    #1008734
    Christian
    Moderator

    Hey there,

    Thanks for writing in! This particular situation is simply a matter of reworking your content to properly fit the physical limitations presented by the theme (this is a consideration that must be taken into account with all themes and designs). It is the same principal applied to filling up a room with furniture—there is only so much that can fit into a given space. The following should be considered in these situations:

    • Logo Size – longer logos will conflict with navigation items as you size your site down. If you are noticing a conflict, you may need to implement some CSS to size down your logo as viewports get smaller.
    • Shorter Names – you should always shoot to have your top-level navigation links be as simple as possible. For example, if your link is “Learn About My Company,” Try using “About” instead. It conveys the same idea and will save you a ton of real estate.
    • Rearrange – sometimes we want to put all of our links in the top-level navigation, but not all pages are created equally. Pages of lesser importance that pertain to a parent link might work well as a sub-menu instead.
    • Less Links – even on more “complex” websites with lots of pages, there are always ways to combine information together to make things simpler, which also ensures that your user doesn’t have to click around for every granular piece of information. For example, you might have two top-level links called “About” and “Contact,” which could possibly be combined into one. This eliminates the need for extra links and makes things much simpler for your users to navigate. Less is more in information architecture.
    • Appearance – fortunately X features plenty of options for adjusting the appearance of elements throughout your site, and the navbar is one of the more flexible elements. Try using a smaller font size if possible to save on a little real estate.

    Thanks!

    #1008902
    Valerio
    Participant

    I don’t understand your reply…
    Did you mean that there is no way to change the width at which the menu icon will replace the full menu, and i can only try to have menu items smaller to make them fit there?

    Kindly

    #1008964
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> CSS :

    @media (max-width: 1010px){
    .masthead-stacked .x-btn-navbar {
        display: inline-block;
    }
    .x-nav-wrap.desktop {
        display: none;
    }
    .x-nav-wrap.mobile.collapse {
        display: none;
    }
    .x-nav-wrap.mobile.collapse.in {
        display: block;
    }
    }

    Hope it helps.

    #1009043
    Valerio
    Participant

    Many thanks!
    this is exactly what i was looking for.

    #1009093
    Thai
    Moderator

    You’re most welcome 🙂

  • <script> jQuery(function($){ $("#no-reply-1008689 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>