[Resolved] Change search bar background when using header element for posts

Home Forums Support [Resolved] Change search bar background when using header element for posts

Home Forums Support Change search bar background when using header element for posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1049414
    Santa

    Hi! Is it possible to change search bar background and the font color? Attached example blog post. Currently it is quite hard to see what person is typing in the search. Is it possible to change search bar background just for posts? Thank you!

    #1049575
    David
    Staff
    Customer Support

    Hi there,

    Leo provides some CSS to style the search form:

    https://generatepress.com/forums/topic/navigation-search-colors/#post-1040744

    We will be adding this as a customizer option in GPP 1.9.

    #1049612
    Santa

    Hi! Thank you for your time and answer! Did put the mentioned css, but it’s not appearing. When in customizer it shows okey, but when saving and exiting it’s the same as was.

    #1049615
    David
    Staff
    Customer Support

    Hmmm looks like autoptimize is effecting the order the CSS is loaded try adding !important to the properties eg.

    .navigation-search input[type="search"], 
    .navigation-search input[type="search"]:active,
    .navigation-search input[type="search"]:focus {
        color: #0b0c0c !important;
        background-color: #ffdd00 !important;
    }
    #1049747
    Santa

    Thank you so much! Now the code works.

    #1049771
    David
    Staff
    Customer Support

    You’re welcome

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