- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 4 posts – 1 through 4 (of 4 total)
Viewing 4 posts – 1 through 4 (of 4 total)
Posted
by
Forums › Forums › Search & Filter Pro › Customise text in drop down menus
Hello,
Is it possible to change the content of drop down menus used in the search? The text at the moment is automatically taken from that taxonomy’s full title (e.g. ‘Holidays in Cornwall’) but ideally I’d like to shorten this (‘Cornwall’).
Thanks,
Alice
For Taxonomies, the only way to do that would be to use this filter to change the label:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
There are many snippets of code using that filter in the forums:
https://support.searchandfilter.com/forums/search/function+sf_input_object_pre/