Hook size guide - by Andrea - on WordPress WooCommerce support

This topic has 11 replies, 2 voices, and was last updated 1 weeks ago ago by Andrea

  • Avatar: Redgall
    Andrea
    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.
    10 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    April 13, 2021 at 19:55

    Hello,

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

    Regards

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

    single product builder

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    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
    Andrea
    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
    Participant
    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
    Andrea
    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
    Participant
    April 14, 2021 at 16:21

    Hello,

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

    Regards

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

    OK perfect thank you for your assistance you were great!

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    April 14, 2021 at 17:21

    Hello,

    You are welcome.

    Regards

    Avatar: Redgall
    Andrea
    Participant
    May 15, 2025 at 08:45

    Thanks for the support! My topic “hook size guide” has been successfully resolved.

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

The issue related to '‘hook size guide’' has been successfully resolved, and the topic is now closed for further responses

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