- This topic has 13 replies, 2 voices, and was last updated 4 years, 3 months ago by
Leo.
-
AuthorPosts
-
February 9, 2019 at 9:12 am #806014
Jim
For the search box in my main menu, I’d love to add the words “Search Here” that then disappear when someone clicks on the box. I’ve had a few people tell me that they were confused what happened when they click the search icon and a bar appeared. Is there any way to add disappearing text into the box? Thanks.
February 9, 2019 at 10:53 am #806079Leo
StaffCustomer SupportHi there,
The second example should be what you are looking for:
https://docs.generatepress.com/article/generate_navigation_search_output/February 9, 2019 at 10:56 am #806082Jim
That’s great. Figured you all had answered that before, but I couldn’t find it.
One question though. Is there any way to change the text color (preferably to white)? It blends in a bit more than I’d like with the default.
February 9, 2019 at 12:23 pm #806128Leo
StaffCustomer SupportLooks like you’ve figured out?
I’m seeing white text: https://www.screencast.com/t/y3TNiAPO
February 9, 2019 at 1:30 pm #806173Jim
I’m talking about the part that says “Enter your search” I’d like to change the color of that so it’s a bit more obvious. Not the color of the text once you start typing a search.
February 9, 2019 at 2:17 pm #806201Leo
StaffCustomer SupportI don’t see the word “enter your search”.
Did you remove it? Or you might need to clear your caching plugin.
February 9, 2019 at 2:21 pm #806205Jim
I just checked on an on logged in browser and its there. https://snag.gy/LuJPUV.jpg
The text is really light, and I’d like to make it brighter so it’s easier to see
February 9, 2019 at 5:42 pm #806293Leo
StaffCustomer SupportTry this:
.navigation-search input[type="search"]::placeholder { color: #ffffff; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know π
February 9, 2019 at 5:49 pm #806295Jim
Works perfectly. One more question though. Is there any way to make the text disappear when someone clicks the box? I have a somewhat older readership (which is why I wanted the text in the first place), so I don’t want them to get confused trying to erase the text before typing their search.
February 9, 2019 at 6:05 pm #806298Leo
StaffCustomer SupportI don’t think that’s possible as the input field is already activated when the search icon is clicked.
So there is no need to click the box again before typing in the search field.
February 9, 2019 at 6:12 pm #806300Jim
Ok. I know you don’t have to delete the text. I just thought it would be nice to have it disappear on click just so no one is confused.
February 9, 2019 at 6:20 pm #806305Leo
StaffCustomer SupportWhat I was trying to explain is that we don’t actually know when the user clicks on the search box again as it’s already activated when the search icon is clicked.
Shouldn’t be too hard for users to figure out I hope π
February 9, 2019 at 6:22 pm #806307Jim
Gotcha. Thanks for the help. Would be nice to have the option on click, but it’s better with the text there regardless.
February 9, 2019 at 6:34 pm #806311Leo
StaffCustomer SupportWe will keep that in mind for sure π
-
AuthorPosts
- You must be logged in to reply to this topic.