I have a search bar on my site. On the search results page, can the images be hidden through the use of JavaScript?
$w.onReady(function () {
$w(“#searchResults1”).onItemReady(($item) => {
$item(“Image”).hide();
});
});
I am getting the following error:
Property ‘onItemReady’ does not exist on type ‘Iframe’
item on ready is syntax for a repeater.
You cannot code or manipulate the wix search results app page that belongs to the wix site search app.
This is a limitation of the built in Wix Site Search app.
I can recreate the search results page manually without the images, and then create a custom search bar using velo code that would allow for this behavior. Could get it done in a couple of hours.
Thanks. I was afraid of that.
1 Like
Thanks but I think I’m going to abort the search bar for now.
1 Like