Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1261374

    I see documentation for adding a widget to the main nav –
    (Logo Left, Nav Center, Widget Right)

    how would I make the Nav left justify instead of being centered?
    thanks!

    #1261386

    Hey jomo5280,

    Can you provide a link to the site/page in question so we can look into this further. The nav can likely be adjusted with css.

    Best regards,
    Jordan Shannon

    #1261390
    #1261420

    Hi,

    Apologies, I meant can you link us to your site so we can view the navigation?

    Best regards,
    Jordan Shannon

    #1261436

    currently site is on a staging server which only I can view, and this is the code I am using:
    (I just need .main_menu to float left next to logo, as oppose to being centered in the header (not using justify-content: space-between;)

    /*--------------------------------
    
    » Header
    
    --------------------------------*/
    
    /* Height */
    
    #top #header #header_main .container.av-logo-container {
        height: inherit;   /* Auto height: Header takes the height of the contents */
    }
    
    /* Header inner container */
    
    #top #header #header_main .container.av-logo-container .inner-container {
      height: inherit; 
      position: relative !important;
      flex-wrap: nowrap;
      justify-content: space-between;
    }
    /* Wrappers 
    --------------------------------*/
    
    /* Header content and Topbar */
    
    .responsive #top #header {
        flex-wrap: wrap;
    }
    
    /* Header contents: Logo, Menu, Social Icons and Widgets. */
    
    .responsive #top #header #header_main {
        flex-basis: 100%;    
    }
    
    /*--------------------------------
    
    » Menu
    
    --------------------------------*/
    
    /* Menu outer container: Menu with siblings cart and social icons */
    
    .responsive #top #header #header_main .inner-container .main_menu {
        order: 0;
        flex-basis: auto;   /* Use calc to minus the width of the logo */
        align-items: center;
        align-self: center;
    }
    
    /* Navigation */
    
    #header .av-main-nav {
        display: flex;
        flex-wrap: nowrap;
    }
    • This reply was modified 4 years ago by jomo5280.
    #1261438

    This is the Link to documentation:
    https://kriesi.at/documentation/enfold/example-of-logo-left-menu-center-widget-right/#toggle-id-2

    #1261652

    Please refer to static image

    • This reply was modified 4 years ago by jomo5280.
    #1262888

    Hi,

    Thank you for the screenshot.

    We have to set the justify-content property of the inner container from space-between to start so that the elements float to the left.

    #top #header #header_main .container.av-logo-container .inner-container {
    	height: inherit;
    	position: relative !important;
    	flex-wrap: nowrap;
    	justify-content: start;
    }
    

    We can then move the phone info to the right of the container with this css code.

    .responsive #top #header #header_main .inner-container .widget {
    	right: 0;
    	position: absolute !important;
    }
    

    Best regards,
    Ismael

    #1264314

    Thank you @ismael !! you rock! I haven’t messed around with Flex / Justify content – looks pretty powerful!

    #1264377

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1264893

    @ismael – thanks again –
    how would I do the opposite approach – and float the nav to the right instead of left?
    I tried using justify-content end – but that did not work.
    thanks!

    • This reply was modified 3 years, 11 months ago by jomo5280.
    #1265405

    Hi,

    You are welcome! If you want to move the menu to the right instead, try to set the justify-content property from start to end to move the contents to the end or to the right of the flex contaner

    #top #header #header_main .container.av-logo-container .inner-container {
    	height: inherit;
    	position: relative !important;
    	flex-wrap: nowrap;
    	justify-content: end;
    }
    

    Best regards,
    Ismael

    #1265524

    change to “end” didn’t seem to affect any change – Nav is still left justified.
    thanks!

    #1265534

    Hi,

    Did you add the code to the very top of quick css so it runs first? Also, clear the cache a few times over.

    Best regards,
    Jordan Shannon

    #1265535

    Yes I did that – and tested in Chrome Dev tools as well.

    #1266199

    Hi,

    Try to revert the value of the justify-content property back to space-between, then adjust the order of the elements so that the logo comes before the menu, then move the widget or phone number to the left.

    .responsive #top #header #header_main .inner-container .main_menu {
    	order: 3;
    }
    
    .responsive #top #header #header_main .inner-container .logo {
    	order: 2;
    }
    
    .responsive #top #header #header_main .inner-container .widget {
    	order: 1;
    }
    

    You may have to remove this css code.

    .responsive #top #header #header_main .inner-container .widget {
    	right: 0;
    	position: absolute !important;
    }
    

    Best regards,
    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.