Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Autosuggest styles #2088

Open
tott opened this issue Feb 16, 2021 · 5 comments
Open

Feature: Autosuggest styles #2088

tott opened this issue Feb 16, 2021 · 5 comments
Labels
module:autosuggest Issues related to the Autosuggest functionality new feature Label for new, potentially bigger features

Comments

@tott
Copy link
Contributor

tott commented Feb 16, 2021

With the ElasticPress autosuggest feature turned on, ElasticPress allows for search suggestion on most of the default WordPress search fields out of the box, however the look and feel of these results is only adjustable through filters and code alterations and cannot be easily altered through the interface.

Ideally we should be providing a UI that would allow for:

  • selection of displayed fields in autosuggest results
  • formatting of fields in autosuggest results
  • featured image thumbnails exposure toggling in autosuggest results
@tott tott added the new feature Label for new, potentially bigger features label Feb 16, 2021
@kyleruscigno
Copy link

Would you be able to point me in the direction of what filters I'll need to hook into to modify the look of the autosuggest results. I'm looking to do something similar and having trouble identifying what I need to do.

@heresdaniel
Copy link

Same here, looking to add thumbnails in autosuggest.

@shmaltz
Copy link

shmaltz commented Jun 21, 2021

Looks like the only way to currently do this is by directly modifying the autosuggest.js file, and adding in the meta fields you want to display.

Also, to get images to display in the auto suggest results, we would need to add the post's featured image url to a meta field, as currently only the image ID is saved to the post. This meta field can be created/updated using the save post hook.

Would be awesome if this was something natively integrated!
Add to Milestone 3.6.0?

@shmaltz
Copy link

shmaltz commented Nov 8, 2021

Can we get featured images in autosuggest for 4.0?

@felipeelia felipeelia added the module:autosuggest Issues related to the Autosuggest functionality label Mar 31, 2022
@felipeelia
Copy link
Member

FWIW, this page of our docs outlines the process of changing that via code: https://10up.github.io/ElasticPress/tutorial-theme-integration.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:autosuggest Issues related to the Autosuggest functionality new feature Label for new, potentially bigger features
Projects
None yet
Development

No branches or pull requests

5 participants