Home › Forums › Support › Search field placeholder This topic has 9 replies, 4 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts December 14, 2017 at 4:32 pm #449814 themedleb Is there a way to add placeholder to the search field? December 14, 2017 at 7:28 pm #449881 LeoStaff Customer Support Hi there, Is this what you are looking for? https://docs.generatepress.com/article/generate_search_placeholder/ December 14, 2017 at 8:05 pm #449892 themedleb Thank you, I think it is what I’m looking for, so far I understood this: add_filter( 'generate_search_placeholder', 'search_placeholder' ); function search_placeholder() { return 'hello'; } Tried it but it showed nothing in the search field. By the way I’m talking about the search field that is in the menu. Thank you. December 14, 2017 at 9:10 pm #449923 TomLead Developer Lead Developer Ah for the navigation, check out the second example on this page: https://docs.generatepress.com/article/generate_navigation_search_output/ December 14, 2017 at 9:49 pm #449940 themedleb Thanks, it works. December 15, 2017 at 12:07 am #449983 TomLead Developer Lead Developer You’re welcome π October 3, 2019 at 1:22 pm #1025647 Hilton Hi Tom, How can I change the search placeholder text color (from primary menu)? Please check http://bit.ly/2VsTD9c ps. I’ve already tried to use this instructions but it didn’t work in Google Chrome https://generatepress.com/forums/topic/changing-the-text-color-of-the-search-bar/ Thanks October 3, 2019 at 2:13 pm #1025677 LeoStaff Customer Support Try this CSS: .navigation-search input[type="search"]::placeholder { color: #ffffff; } Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know π October 3, 2019 at 2:24 pm #1025678 Hilton Hi Leo, It worked very well! Thanks October 3, 2019 at 2:44 pm #1025685 LeoStaff Customer Support No problem π Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In