All things Shopify and commerce
I have many images in a art gallery type format on my site, and I've linked each image to a search for a specific tag (related to the image) to pull all products that use that image. But it's a little hacky. Ideally, I want to show the products, but not the search bar containing the "hidden" tag. Creating a collection with each image is not feasible. Any help with this is appreciated. Website is linked.
Solved! Go to the solution
This is an accepted solution.
Try this: On your search-results page, where it says "Add Custom CSS", type:
.template-search__search{
display: none;
}
See if this looks ok to you. The website visitor should still be able to search for any product from the navigation bar up top.
So once the image is clicked, you want it to link to a search result, but also hide the tag?
Where would this image be? On the home page?
No, the images are not on the homepage. Here is a page of images that when you click on the image, you can see the "hacky" search. I want the products to show, but not the search bar with the tag.
Would you consider removing that search bar entirely, whether or not the search result comes from clicking on an image or a normal search result, and just using the one on the navigation bar?
Yes, I’d consider it, provided a consumer search is still an option. I don’t want to eliminate that feature.
This is an accepted solution.
Try this: On your search-results page, where it says "Add Custom CSS", type:
.template-search__search{
display: none;
}
See if this looks ok to you. The website visitor should still be able to search for any product from the navigation bar up top.
@FUN-tography I saw you marked my answer as a solution. Is everything working well for you now?
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025