How to hide Shop & Cart page?
-
Hi,
on my site, I am not using theShop
page or theCart
page as people click on the pricing table and go directly to the checkout.In order to remove the
Shop
andCart
page from the website I’ve already done the following:- Made the Shop, Cart & My Account Pages Private
- From the WooCommerce settings taken out the shop, cart & my account page
Screenshots:
But the problem is if someone still visits the URLs manually by entering them in the browser like
example.com/shop/
The page title shows
Page Not Found
But in the body, I can clearly see the products showing up. Does anyone know a way to make sure if anyone enter/shop/
it will show them the proper 404 pages?If there is a code snippet to make this happen, please do share that.
Thanks looking forward to reply.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to hide Shop & Cart page?’ is closed to new replies.