How do I remove the default Shop page?
-
I have setup custom product pages and do not want to use the default woocommerce shop page. I have deleted the default shop page and left the page blank in woocommerce > settings >products section but he page still shows up. I have cleared the wordpress cache and my browser cache but the default shop still shows. Is there anything else I can try?
-
Hi @keithbiomed
Thanks for reaching out!
I understand that you’ve created custom product pages and do not want to use the default shop page. However, after deleting the shop page under WooCommerce > Settings > Products, and clearing your browser’s cache, and WordPress cache, the old page still shows up, correct?
On my personal site running on the default Storefront theme, I created a new shop page called
Shop Page # 2
and changed it in WooCommerce > Settings > Products > Shop page. I was able to see the new shop page on my site:Output:
Have you tried changing the shop page to the new custom shop page you created in WooCommerce > Settings > Products > Shop page and see if this works?
Otherwise, I’d like to understand your site properly, please share your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Thanks!
Hi thanks for your reply!
I deleted the default “shop” page and emptied the shop page in woocommerce settings: https://www.screencast.com/t/eQpc3WJe
but the shop page still shows up.
I have also tried creating a page called all-products that uses a shortcode for a product table from the “Woocommerce product table PRO” plugin, then set that page as the shop page: https://www.screencast.com/t/AL6TxC2RTcTl
But all that does is put the default shop on the all-products page and does not display my product table at all.
Here is the System Status Report, I’ve put it on github as you suggested here: https://gist.github.com/Biomed-Keith/89334c9e861f40c1df8479d44cad03d8
I’m not sure how the fatal error log works, is only the most recent one that counts? if so I put it at the bottom of the github post
- This reply was modified 1 year, 7 months ago by keithbiomed.
- This reply was modified 1 year, 7 months ago by keithbiomed.
Hi @keithbiomed
Thanks for trying my suggestion above.
I understand that even after changing the shop page to another page, the issue still exists.
This could be due to caching. Can you please have your host purge the site cache as well as disable the LiteSpeed Cache plugin under (Plugins > Installed Plugins) and see if this works?
Hi there, no I’ve tried all that, it’s not a caching issue.
Hi @keithbiomed,
Since the default shop page still shows up, you can try resetting the permalinks. To do this, simply go to Settings → Permalinks and click the “Save Changes” button without making any changes.
This will reset the permalinks and may help remove the default shop page.
If that doesn’t work, please can you navigate to WooCommerce → Status → Tools, and do the following:
- WooCommerce transients –
Clear
- Expired transients –
Clear
- Clear template cache –
Clear
Next, please clear your browser cache and then check the shop page again.
Please ensure that you have a good?backup?of your?full site and database?in place before doing the above, so that, should something go wrong, you are able to easily restore your site to a functioning state.
Let us know how this goes!
Thanks again for your response.
I have tried resetting permalinks as one of the many google searches I found, that does nothing. I have also tried your solution to clear those options in woocommerce/status/tools, however that also does not make any change at all.
Hi @keithbiomed
Thanks for trying all our suggestions above.
One last solution I would like for you to try is to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?
If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.
Let us know how it goes!
Thanks but that is the first thing I tried. I deactivated all plugins and switched to the default theme but the /store page is still there, no matter what I do.
Hi @keithbiomed ,
Thanks for providing an update!
I would like to gain more clarity on your overall goal here so that we can better assist you.
I understand that you have created your own custom product pages, however are you wanting to change the sites landing page to a custom home page or shop page, or what are you looking to achieve exactly?
Where would you like your customer to land when they visit your site? Are you wanting to remove the shop page entirely?
Once we have more clarity on what your overall end goal is, we’ll be able to assist more effectively.
Cheers!
Hello,
I simply do not want the /shop page to be available as I have other pages that display products using the woocommerce product table plugin.
Thank you.
Hello @keithbiomed,
I simply do not want the /shop page to be available as I have other pages that display products using the woocommerce product table plugin.
I understand that you do not want customers to access the shop page. I found a ready-to-use snippet for category pages here. To modify it for the shop page, use the
is_shop()
conditional tag.
Modified:/* Redirect requests on shop page to homepage */ add_action('template_redirect', 'jltwp_adminify_remove_archives_category'); function jltwp_adminify_remove_archives_category() { if ( is_shop() ){ $target = home_url('/'); $status = '301'; wp_redirect($target, 301); exit; }}
You can add the snippet above using a custom code plugin like Code snippet.
Hope this helps!
Hi @keithbiomed,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – feel free to create a new topic? should you need any further help.
Cheers!
- The topic ‘How do I remove the default Shop page?’ is closed to new replies.