Hello,
please add following css code to your custom.css file:
.empty-category-block{
display:none
}
Regards,
Stan Russell.
Solved7 replies4 participantsUpdated by Jack Richardson
Hi there,
Our website menu is mostly made up of product categories. We do not wish the include the Shop page in the menu i.e. the full listing of all products. Therefore, we would like to disable the ‘Return to Shop’ button that appears when there are no products to view within a product category. I’ve taken a look but can’t see how to do that. Any advice much appreciated.
Best wishes, Andrea
Hello,
please add following css code to your custom.css file:
.empty-category-block{
display:none
}
Regards,
Stan Russell.
Hi Stan,
Thank you for your email. I don’t think I explained the problem properly.. if I click the ‘Bag’ button when it is empty, the text reads ‘You bag is currently empty’ and below this is a ‘Return to Shop’ button. But, we haven’t set up a Shop page (all the products are listed under product categories). So we want to remove this button altogether, as we don’t have a Shop page. The code you have suggested doesn’t do that?
Best wishes, Andrea
Hello,
I’ve edited the code in your custom.css to this one:
.empty-cart-block .button.active {
display:none !important;
}
Please check empty cart page now.
Regards,
Eva Kemp.
Hi Eva,
Much appreciated. Sorry, actually, the problem is also there for product categories that do not currently have any products listed. So, for example, we have 2 categories/pages — ‘Art Pieces’ and ‘Gifts’ that has the same ‘Return to Shop’ button appearing. How would I remove the button from these pages also? Or change it to ‘Return to Home’ if that is easier? Apologies for the inconvenience, I only just noticed it appears on more than just the Bag page..
Best wishes, Andrea
Hello,
Please add this code in custom.css:
.empty-category-block .button.active {
display:none !important;
}
Regards,
Eva Kemp.
Fabulous! Many thanks indeed Eva!
Hello,
You’re welcome.
Best regards,
Jack Richardson.
The issue related to '‘How to disable the Return to Shop button’' has been successfully resolved, and the topic is now closed for further responses
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
RestaurantFood & drinks
(live demo, opens in a new tab)
Phone ServiceElementor
(live demo, opens in a new tab)
Artmaxy StoreWPBakery
(live demo, opens in a new tab)
Sport StoreSports & travel
(live demo, opens in a new tab)
Pet ShopPets
(live demo, opens in a new tab)
Transportation and LogisticsCars & bikes
(live demo, opens in a new tab)
Bakery StoreFood & drinks
(live demo, opens in a new tab)
Painting studioElementor
(live demo, opens in a new tab)
Bike StoreSports & travel
(live demo, opens in a new tab)
HotelBusiness
(live demo, opens in a new tab)
Furniture Store 02Furniture
(live demo, opens in a new tab)
BookStoreBooks & art
(live demo, opens in a new tab)
Electron Store 02Electronics
(live demo, opens in a new tab)
ChurchBusiness
(live demo, opens in a new tab)
Jewelry StoreJewellery
(live demo, opens in a new tab)
Organic Cosmetics StoreBeauty
(live demo, opens in a new tab)