Hook size guide - by Redgall - on WordPress WooCommerce support

This topic has 10 replies, 2 voices, and was last updated 3 years, 7 months ago ago by Olga Barlow

  • Avatar: Redgall
    Redgall
    Participant
    April 13, 2021 at 15:45

    Hi,

    Is it possible to move size guides after product variation elements? Do you know the right hook?

    Thank you.

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 13, 2021 at 19:55

    Hello,

    Do you use single product builder or built-in layout?

    Regards

    Avatar: Redgall
    Redgall
    Participant
    April 14, 2021 at 07:36

    single product builder

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 11:03

    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

    Avatar: Redgall
    Redgall
    Participant
    April 14, 2021 at 11:47

    Hi,

    I don’t know how to build a hooks do you mind showing the example to try? You would be of help.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 14:19

    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

    Avatar: Redgall
    Redgall
    Participant
    April 14, 2021 at 15:32

    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?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 16:21

    Hello,

    Then use
    add_action( 'woocommerce_single_variation', 'etheme_product_single_size_guide', 15 );

    Regards

    Avatar: Redgall
    Redgall
    Participant
    April 14, 2021 at 16:49

    OK perfect thank you for your assistance you were great!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 17:21

    Hello,

    You are welcome.

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.