This topic has 12 replies, 4 voices, and was last updated 8 years, 4 months ago ago by Eva Kemp
I have added this code, but it does not remove the tabs underneath on the single product page.
remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 60 );
Hello,
You can find the correct code here:
https://docs.woothemes.com/document/editing-product-data-tabs/
Add it to functions.php file.
Best regards,
Jack Richardson.
Hi Jack
I don’t think that has the references to moving the tabs to the right of the products image which is what I am trying to achieve. Thanks
Hello,
We don’t see any image in your post.
Please resend a screenshot what you want to achieve.
Thank you.
Regards,
Eva Kemp.
I have attached a link to the image. The code has moved the description to the right of the main photo but has also left it underneath (The red circled area is the one we want to remove)
Hello,
If you want to remove Product Description tab then add this code in functions.php file:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
return $tabs;
}
Regards,
Eva Kemp.
We have already used that to remove the More Info and Reviews tab. We don’t want to remove the Description. We have used the code in the first post to move it to the top right, just about the product options. We simply want to remove the duplicate that is circled in red.
At the moment it is showing the Description at the right hand side of the picture and in the red circled area.
Hello,
You said:
We simply want to remove the duplicate that is circled in red.
You circled “Description” tab in your screenshot. I gave you the code how to remove it.
So please clarify what is wrong.
Don’t you need to remove description tab?
Regards,
Eva Kemp.
If you look at the image we posted higher in the thread you can see that the product description is on the product page twice, once right of the product image (this is how we would like it) and once underneath the product image which is circled. The circled description is what we would like to remove but keep the description that is on the right of the product image.
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
return $tabs;
}
That code you gave us breaks the website and causes it to show a white page.
Regards.
Hello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall.
See logins below
Hello,
I’ve edited the code in child functions.php file to:
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
unset( $tabs['description'] ); // Remove the description tab
return $tabs;
}
and added short description for the product “Rosa Faia Twin Range T-Shirt Bra”:
http://storage3.static.itmages.com/i/15/1208/h_1449592710_7265419_f4811b06bf.png
Please check this product now.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up