Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    #1181085

    Sorry 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

    #1181150

    Hi 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,
    Nikko

    #1181178

    Ok, 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:

    #1181643

    Hi 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,
    Nikko

    #1181869

    Thanks 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.

    #1181881

    Hi 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to change default WooCommerce shop page to my custom layout?’ is closed to new replies.