I have just change the order of these lines of code for some changing in single product template.
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 10 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 15 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
After toggling the numeric digit at the first two lines i am getting duplicate tabs. If i reorder them it will revert back to the default position. Kindly assist me what can i do. Thanks
I have just change the order of these lines of code for some changing in single product template.
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 10 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 15 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
After toggling the numeric digit at the first two lines i am getting duplicate tabs. If i reorder them it will revert back to the default position. Kindly assist me what can i do. Thanks
Found a quick solution for this problem. Unable to remove action as Sally mentioned above with example.For me the display:none; is enough, i have remove the child div of summary class. See the code below:
.summary.entry-summary div:nth-child(5) {
display: none;
}
For me its 5th child maybe it will help others.
functions.php
) and have a look at this example. – Sally CJ Commented Feb 12, 2019 at 6:20