This topic has 3 replies, 3 voices, and was last updated 1 months, 3 weeks ago ago by Andrew Mitchell
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
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
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
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