Tagged: enfold, tabs, woocommerce
Hello, I added the following code to my functions.php in order to display woocommerce tabs under the product image/gallery but it displays the tabs at the end of the content section and as full width.
How can I make the show righ under the product image with the same width?
Here’s the code I used:
add_action(‘init’, ‘avf_move_product_output’);
function avf_move_product_output() {
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 1 );
add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 5 );
}
Thanks in advance.
Hey Jorge,
Maybe this will help you out? https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
Best regards,
Rikard
Hello, plese consider this ticket as solved.
Thank you.
Hi jorgepelaez,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria
Hi jorgepelaez,
I’m glad to hear that Rikard could help you out :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko
Hello. I need to move my WooCommerce tabs to underneath the product images too. Can someone help with this code?
Hi,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function av_woo_tabs_below_product_image() {
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );
add_action( 'woocommerce_product_thumbnails', 'woocommerce_output_product_data_tabs', 10 );
}
add_action( 'init', 'av_woo_tabs_below_product_image');
Best regards,
Mike
Hi,
To open a new thread please click this link.
Thank you for using Enfold.
Best regards,
Mike