Site logo

[Resolved] Search Bar Background

Home Forums Support [Resolved] Search Bar Background

Home Forums Support Search Bar Background

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1571226
    Sourabh

    Hi David/Tom,

    When someone clicks on the search icon of the header then its open to the left side but remain blank with no text, so I want to fill some text msg in the search bar and wants the menus and logo should be hidden till the time the search box is open, so how to do that in GP –

    Sample url is below –

    https://typer.seventhqueen.com/travel-agency/

    Open the above URL and click on the search icon on the right side of the header so that you can understand what i am trying to say.

    Thanks:

    #1571315
    David
    Staff
    Customer Support

    Hi there,

    you can set the Background color of the Search form to match that of your primary nav in Customizer > Layout > Primary Nav. This will obscure the menu and logo.

    This article provides the PHP Snippet to add the Search form place holder text:

    https://docs.generatepress.com/article/generate_navigation_search_output/#add-a-placeholder

    #1571318
    Sourabh

    Thanku David, also let me know –

    Should I paste the below code into my function.php (child theme) –

    https://docs.generatepress.com/article/generate_navigation_search_output/#add-a-placeholder

    #1571327
    Sourabh

    okay i did it, i have pasted it into child theme in function.php and its seems working except my header is dark so how to change that text color of search box??

    #1571351
    David
    Staff
    Customer Support

    you can set the Text color of the Search form in Customizer > Layout > Primary Nav.

    #1571357
    Sourabh

    Ya did it but seems something is wrong, that text doesn’t display in the search box, however, now I made the header white and text black –

    https://venusentertainments.com/

    #1571364
    David
    Staff
    Customer Support

    In your Child Theme functions, move that code to the very top of all your other code. Then recheck to make sure its working.

    #1571372
    Sourabh

    Yes Its Working, Thanku David, you are helpful and Kind

    #1571391
    David
    Staff
    Customer Support

    Awesome – glad to hear that!

    #1571394
    Sourabh

    Welcome..

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