This topic has 8 replies, 4 voices, and was last updated 8 years, 9 months ago ago 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