Shopify themes, liquid, logos, and UX
I was wondering how I could remove a product that appears when I go to the /collections/all url of my site as I already have a page for the shop of my site.
You cannot remove products from this page somehow you can stop user to land on this page and redirect him to the main page or homepage.
Yes, this would be great. How?
Use below code into your theme. Liquid file before </body> close tag
<script>
if(document.location.href.indexOf('/collections/all') > -1) {
// indexOf will return the position of the first occurence of this string in the url
// or -1 it it's not there.
document.location.href = '/';
}
</script>
This did work, thank you. But I was wondering if instead of making it redirect them to where they were before can it take them to the current product page which is /pages/inventory
You want to take instead the home to inventory page?
I've already done this thank you. I'd appreciate assistance on how to change the default cart button automatically placed in the checkout page to my existing cart button that is throughout my whole page. The first image below is the existing button and the second image is the default one for the checkout page.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025