[Resolved] Position the site title

Home Forums Support [Resolved] Position the site title

Home Forums Support Position the site title

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #992576
    Liran

    Hey,

    Is there a way to position the site title at the center, while the hamburger menu is on the left and the navigation search is on the right (both on desktop and mobile)?

    Thanks!

    #992641
    Leo
    Staff
    Customer Support

    Hi there,

    Some CSS is required for that.

    Can you first activate this option:
    https://docs.generatepress.com/article/navigation-as-a-header/

    And add the off-canvas menu on desktop like this:
    https://docs.generatepress.com/article/off-canvas-panel-overview/#use-off-canvas-menu-only

    Then activate navigation search:
    https://docs.generatepress.com/article/navigation-search/

    So that your header consists of the three items you want?

    Then link me to your site and I’ll tackle the CSS 🙂

    #992643
    Liran

    Done, I’ve also added the URL.

    #992747
    David
    Staff
    Customer Support

    Hi there,

    can you double check you have the Navigation as Header checked? Also whilst you’re there activate the Mobile Header making sure you add the Mobile Header logo

    #992865
    Liran

    can you double check you have the Navigation as Header checked?

    When this option is on, the site title disapper. I’m using the hook Tom suggested here to color the second part of my logo via HTML: html tags in site title

    activate the Mobile Header making sure you add the Mobile Header logo

    Tried that with site title, which made it look tiny.

    #993010
    David
    Staff
    Customer Support

    Sorry missed that, try this CSS:

    .site-branding {
        position: absolute;
        left: 50%;
        transform: translatex(-50%);
        z-index: 1000;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul,
    .inside-header {
        display: flex;
    }
    
    .main-navigation li.search-item {
        order: 2;
        margin-left: auto;
    }
    #993028
    Liran

    Looks fantastic on desktop. However, on tablet and mobile, there are two menus and search boxes.

    #993033
    David
    Staff
    Customer Support

    Are you seeing that on the front end? Or only in the customizer?
    If its a problem on the front end add back the CSS and let me know,

    #993105
    Liran

    Are you seeing that on the front end? Or only in the customizer?

    Both.

    add back the CSS and let me know,

    You can take a look now.

    #993120
    David
    Staff
    Customer Support

    Aah its the blank primary nav – try adding this CSS:

    .main-navigation .menu-toggle {
        display: none;
    }
    #993122
    Liran

    Thanks! That worked.

    #993124
    David
    Staff
    Customer Support

    Glad to be of help

    #993125
    Liran

    I do have a few questions:

    Why does the search bar show two icons on tablet/mobile? And how can I change the background of the search query?

    #993170
    Leo
    Staff
    Customer Support

    I’m not seeing 2 search icons on mobile/tablet. Have you solved this?

    As for search colors, this should help:
    https://generatepress.com/forums/topic/issue-with-search-field-in-primary-menu/#post-977986

    #993174
    Liran

    I’m not seeing 2 search icons on mobile/tablet

    Did you click the search icon?

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