Forums › Forums › Search & Filter Pro › Formatting search box and fields
- This topic has 21 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Trevor(Private) July 1, 2020 at 4:44 pm #251001
1. Having two forms on the one page, whether the same form or different forms, can potentially cause issues, especially if they output/control results on that same page.
2. That is normal behavior for search boxes for Chrome. Most confusing. This CSS will generally fix that (not just for our forms):
input:focus::-webkit-input-placeholder { color: transparent; }
3. This is why there should not be two forms on the same page.
Please note that we are now near to closing for the day as it is late afternoon here in the UK, so my next reply may not be until tomorrow.
Trevor(Private) July 2, 2020 at 3:56 pm #251185You have 3 posts.
#251009 In V3, I think what you want (to have the two forms, may become possible. V3 is due in a few months).
#251039 It will need to be coded in PHP. This page should help:
https://searchandfilter.com/documentation/accessing-search-data/#get-the-search-term
#251085 This is fairly normal UX practice. It is because the majority of ‘second’ searches are typo corrections.
Trevor(Private) July 2, 2020 at 4:18 pm #251195What does that plugin normally expect? Can you give me an example? The search term is not stored as a PHP string variable, and it is not available using the WordPress normal process, e.g.
get_query_var( 's' )
, which is what I suspect it might want. Maybe using_sf_s
would work? -
AuthorPosts