Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Change focus color on search bar in search modal

  • Hi!
    I have been inspecting the code and I can’t figure out how to change the color when I type text in the search bar in the search modal.
    When I type text the border gets blue, how do I change it?
    And, how do I get the primary header menu centered?

  • Hi there,

    You can use this CSS to set a focus color of the search modal field:

    #search-modal-input:focus {
       outline-color: blue;
    }

    And to center the menu:

    @media(min-width: 769px) {
      .nav-float-right #site-navigation {
        margin-left: unset !important;
        flex: 1;
      }
    
      #primary-menu {
        margin: auto;
      }
    }
  • Cool! Thanks a lot.
    I see the search icon does appear a bit after the menu. Is it possible to get it after the last menu item instead?

  • Hi there,

    change Alvinds second CSS rule to:

    
    @media (min-width: 769px) {
        .nav-float-right #site-navigation {
            margin-left: unset !important;
            flex: 1;
        }
    
        #primary-menu {
            margin-left: auto;
        }
        .menu-bar-items {
            margin-right: auto;
        }
    }
    
  • Perfect! Thanks.

  • You’re welcome

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