This topic has 10 replies, 2 voices, and was last updated 3 years, 8 months ago ago by Olga Barlow
Hi,
Is it possible to move size guides after product variation elements? Do you know the right hook?
Thank you.
Hello,
Do you use single product builder or built-in layout?
Regards
single product builder
Hello,
There is no such option in our theme. You can try to implement it with additional customization using WooCommerce hooks https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/ to display etheme_size_guide function in place you need.
Regards
Hi,
I don’t know how to build a hooks do you mind showing the example to try? You would be of help.
Hello,
Oh, it’s very simple. Add the below code to child theme functions.php
add_action( 'woocommerce_single_variation', 'etheme_size_guide', 15 );
Remove the Size guide element from the single product builder to avoid duplication.
Regards
Ok you are great! but it comes out only “Sizing guide” without icon and then the name “Sizing guide” I have to change it. But instead of adding, can’t you move the existing one to the desired position?
Hello,
Then use
add_action( 'woocommerce_single_variation', 'etheme_product_single_size_guide', 15 );
Regards
OK perfect thank you for your assistance you were great!
Hello,
You are welcome.
Regards
You must be logged in to reply to this topic.Log in/Sign up