[Resolved] How can I place the logo in the middle of the menu

Home Forums Support [Resolved] How can I place the logo in the middle of the menu

Home Forums Support How can I place the logo in the middle of the menu

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1156399
    Hernan

    Hi, I want to place the logo in the middle of the main menu, but I can’t find the way from the editor.
    Could you guide me?

    Example menu

    sec1 sec2 sec3 LOGO sec 4 sec 5 sec 6

    Thank you

    #1156408
    David
    Staff
    Customer Support

    Hi there,

    this document explains how to do that:

    https://docs.generatepress.com/article/centering-logo-navigation/

    #1156439
    Hernan

    thanks, it was very helpful

    #1156479
    David
    Staff
    Customer Support

    You’re welcome

    #1156770
    Hernan

    A very good resolution.
    in responsive mode now
    =menu logo

    sec1
    sec 2
    sec3
    logo
    sec 4
    sec5
    sec6

    and I would like to have it that way

    logo = menu

    sec1
    sec2
    sec3
    sec4
    sec5
    sec5

    #1156789
    David
    Staff
    Customer Support

    Can you share a link to your site so i can provide the CSS fix?
    You can edit your original topic and add the link to the Site URL field.

    #1156792
    Hernan

    I already edited

    #1156804
    David
    Staff
    Customer Support

    Ok so we need to make some changes to the CSS.

    Replace this:

    .site-branding,
    .site-logo {
    	position: absolute;
    	left: 50%;
    	-webkit-transform: translateX(-50%);
    	        transform: translateX(-50%);
        z-index: 200; 
    }

    with:

    .site-branding,
    .site-logo {
    	position: absolute;
    	left: 50%;
    	-webkit-transform: translateX(-50%);
    	        transform: translateX(-50%);
        z-index: 200; 
        top: 0; /* Include this property */
    }

    And replace this:

    .slideout-navigation .menu-item-separator,
    .main-navigation.toggled .menu-item-separator{
    	display: none !important;
    }

    with:

    .slideout-navigation .menu-item-separator,
    .main-navigation.toggled .main-nav li.menu-item-separator{
    	display: none !important;
    }

    Then add this CSS to move the =menu toggle to right hand side:

    #mobile-header .inside-navigation {
        justify-content: flex-end;   
    }
    #1156816
    Hernan

    Thank you !!!!

    have a nice day

    #1156826
    David
    Staff
    Customer Support

    You’re welcome – and you too !

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