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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024