- This topic has 2 replies, 2 voices, and was last updated 5 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › How to add a search icon that works
Tagged: button, search, Search Icon
Hi Trevor,
I searched and found this thread so I was able to add a search icon:
https://support.searchandfilter.com/forums/topic/need-to-add-icon-right-to-search-box/
My problem is how can we get it to actually input the search keywords/basically get it to work like an actual search button?
Screenshot of the added placeholder icon here (following your css code in mentioned link)
https://snipboard.io/3D49Cq.jpg
You may need to add some JavaScript to the page so attach an onclick event to the after pseudo class that would then submit the form. I am not sure what this code would look like though, so you may need to seek assistance from a third party coder or help site (like Stack Exchange, e.g. https://stackoverflow.com/questions/5563783/jquery-class-click-multiple-elements-click-event-once). the event would trigger the form using code like this:
$('.searchandfilter').submit()