-
AuthorPosts
-
February 2, 2020 at 9:59 pm #1180704
Hi,
I have searched the forums to no avail. I am building a custom WooCommerce shop page using the Avia Layout Builder, it is:And I originally created this page based on the default WooCommerce page:
https://www.gregorybeylerian.com/shop/When I go to the back end WooCommerce / Settings / Products and switch Shop Page to Art-Shop, strangely the page becomes a mash up of the two shop pages.
What step am I missing to use my custom built shop page instead of the default shop page?
Thanks ,
GB
- This topic was modified 4 years, 9 months ago by gb. Reason: spelling
February 3, 2020 at 11:32 pm #1181085Sorry to bump, I’m on a deadline and hoping someone might be able to help me understand how to switch my WooCommerce default shop page to the custom page I build using the Avia Layout builder.
Thanks,
GB
February 4, 2020 at 5:31 am #1181150Hi GB,
Just go to Appearance > Menus, then replace the Shop menu item and replace it with your Custom Shop page then just set the Label to Shop.
Hope this helps.Best regards,
NikkoFebruary 4, 2020 at 7:21 am #1181178Ok, yes I did that but the one problem is that if I place an item in the cart, then view the cart and delete the item from the cart, a button shows up that says “Return To Shop” and if I click that, it takes us to the default shop, not my custom page.
Otherwise I have set it up as you have said and that much works well, thank you:
February 5, 2020 at 8:51 am #1181643Hi GB,
Please try to add this PHP code in your child theme’s functions.php
function custom_return_to_shop_redirect() { return site_url() . '/art-shop/'; } add_filter( 'woocommerce_return_to_shop_redirect', 'custom_return_to_shop_redirect' );
Best regards,
NikkoFebruary 5, 2020 at 6:05 pm #1181869Thanks Nikko,
Could you tell me where / how I put this code? Sorry for not understanding this level – regarding PHP code.
I don’t know that I use a child theme? I just update my Enfold theme when there are updates by uploading the Enfold folder via FTP using Fetch.
February 5, 2020 at 6:46 pm #1181881Hi GB,
I see, no worries, first I’d like to talk about the child theme first before the code.
We suggest using a child theme when a tweak is being made because all modification to the Enfold theme files will be lost during an update, to resolve this issue WordPress provided a method in which a tweak to a theme can be preserved and this is what a child theme is used for. You can download the child theme and find further instructions on this link: https://kriesi.at/documentation/enfold/child-theme/Next is the code I gave should be added in a file called functions.php which is inside enfold-child folder (full location is wp-content/themes/enfold-child/functions.php), at the bottom of functions.php paste the code I provided above and that should be good to go.
Best regards,
Nikko -
AuthorPosts
- The topic ‘How to change default WooCommerce shop page to my custom layout?’ is closed to new replies.