Archived topic
Woocommerce - send all "shop" links to landing page instead of default shop page
4 replies · Started by Bob on March 5, 2018
Hello,
I am using Generatepress with Woocommerce and would like to send all "shop" links including those that appear on default woocommerce pages for example, the button that appears when your cart is empty, to the page I created instead of the woocommerce shop page that's automatically populated with content.
The link below seems to have some information and I've found other articles online that indicate a change to the functions.php is necessary, but I'm looking for the least intrusive way to do this, and one that if possible, I don't have to modify core files that will be overwritten during upgrades.
https://generatepress.com/forums/topic/redirection-for-default-woocommerce-shop-page/
How would you recommend I accomplish this?
Thank you!
You could redirect the shop page to any page you want to really. I use the Redirection plugin to do all my wordpress redirects. https://wordpress.org/plugins/redirection/
If you want to use the functions.php code and not lose all of your modifications then you would need to use a child theme.
Using the method here will save your changes through updates: https://docs.generatepress.com/article/adding-php/
Much appreciated! I've decided to stick with the simple, clean look of the stock woo product pages but the code snippets plugin looks very cool.
Glad we could help!