Reorder elements with hooks on the single product page

This topic has 3 replies, 3 voices, and was last updated 1 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Tiang
    Tiffany
    Participant
    September 30, 2024 at 15:31

    hello,

    I want to modify the order of the elements on the single product page.

    But I can’t find the name of the (size guide) hook to be able to change its order. Please if you can help me with this.

    The same thing happens to me to be able to delete some elements from the tabs (such as reviews and additional information), since I only need the description and the personalized tab to appear, but I don’t know what these hooks are called to be able to change their order or delete them of the design of this product page

    2 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 1, 2024 at 07:15

    Dear @Tiffany,

    I hope this message finds you well. To reorder the ‘Size Guide’ element on your WooCommerce site, please insert the following custom PHP snippet into your child theme’s functions.php file:

    add_action( 'wp', function() {
        remove_action( 'woocommerce_single_product_summary', 'etheme_size_guide', 21 );
        add_action( 'woocommerce_single_product_summary', 'etheme_size_guide', 17 );
    }, 70);

    Please adjust the value of 17 to meet your specific needs. This will allow you to find the optimal placement for the ‘Size Guide’ on your product pages.

    Additionally, if you are looking to modify the product data tabs, I recommend reviewing the official WooCommerce documentation for guidance. You can find detailed instructions and code snippets here: https://woocommerce.com/document/editing-product-data-tabs/#section-1.

    Should you require further assistance or have any questions, please do not hesitate to contact us.

    Best regards,
    Jack Richardson
    8Theme’s Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    October 1, 2024 at 10:32

    Dear Tiffany,

    In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?

    Click here to share your thoughts: https://themeforest.net/downloads

    Being part of our community means a lot, and your feedback contributes immensely.

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Reorder elements with hooks on the single product page’' has been successfully resolved, and the topic is now closed for further responses

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.