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?
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024