Home › Forums › WoodMart support forum › How do I remove Description & Additional Information
How do I remove Description & Additional Information
- This topic has 10 replies, 3 voices, and was last updated 3 years, 8 months ago by Elise Noromit.
-
AuthorPosts
-
March 24, 2021 at 10:56 am #275994
ChairmanPromotionsParticipantHi, I am looking to remove the Description and Additional Information from the single product page. If I use css that was previously provided on another topic, I can successfully remove the heading Description and remove the heading Additional Information but the Womens Swing Tank text still remains. I would like to remove the entire row. Thank you
Attachments:
You must be logged in to view attached files.March 24, 2021 at 11:07 am #275999
dido76bgParticipantIf you want to remove it from all your single products pages it is possible to be done by css or function.
If you want to remove it from a specific single product/s page it is posibble to be done only by function.
Add this in your child theme functions file:
function woo_remove_custom_product_tabs( $tabs ) {
unset( $tabs[‘description’] );
unset( $tabs[‘additional_information’] );
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_custom_product_tabs’, 98 );With css – just set display:none;
March 24, 2021 at 11:09 am #276000
ChairmanPromotionsParticipantIs it possible to add to theme css instead of the function.php file?
March 24, 2021 at 11:30 am #276004
dido76bgParticipantIt is better to use and add modifications in your child theme files – finctions.php and style.css.
According to me it is better to use function but if you want to do it with css code than add this to your chid theme style.css or in theme setting custom css section:
.tabs-layout-tabs .tabs li.description_tab,.tabs-layout-tabs .tabs li.additional_information_tab{display:none !important}
March 24, 2021 at 11:34 am #276005
ChairmanPromotionsParticipantI applied that code to the theme css to see how this works and it removed the description and additional information but the actual description remained. So thank you for that, is there a way to remove that also?
Attachments:
You must be logged in to view attached files.March 24, 2021 at 11:46 am #276013
dido76bgParticipantReplace previous css with this one:
.tabs-layout-tabs .tabs li.description_tab,.tabs-layout-tabs .tabs li.additional_information_tab,.woodmart-tab-wrapper #tab-description,,.woodmart-tab-wrapper #tab-additional_information {display:none !important}
And one more time – it is better to use functions because you can add conditions. With css the code is still there. It is just not visible for the customer.
function woo_remove_custom_product_tabs( $tabs ) {
unset( $tabs[‘description’] );
unset( $tabs[‘additional_information’] );
return $tabs;
}
add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_custom_product_tabs’, 98 );March 24, 2021 at 4:42 pm #276083
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
If you want to remove these tabs on all the products,
Description – is the main description on the product page. If you clean the product description it would disappear.
Additional tab (with the attributes) enter each attribute in the product page and disable showing on the product page to hide.
Additional tab (Shipping information) You can clean all the fields in the Theme Settings > Product page > Tabs: https://xtemos.com/docs/woodmart/html-blocks-2/#shipment_delivery
If you want to hide on a certain product, please add this code to the product page:
.product-tabs-wrapper{ display:none; }
Best Regards
April 27, 2021 at 11:13 pm #287408
ChairmanPromotionsParticipantHello. I am trying to follow up with this. For reasons I cannot explain there is no child theme for the website we are working on. I had a previous developer that I am unable to get in touch with apply code to the backend of the site that would remove both the content and the actual heading for Description and Additional Information. Having to go into each and every product to make this work is a situation that we are not able to do (over 500 products). I just want the entire section removed so that Description and Additional information does not display globally. Can you advise, I am not having much luck getting back in touch with the developer I had previously used for the correct code. Thank you for any help.
April 28, 2021 at 12:14 pm #287618
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.product-tabs-wrapper{ display:none; }
This code would remove the tabs from all the products.
Best Regards
April 28, 2021 at 1:43 pm #287652
ChairmanPromotionsParticipantThis seems to have worked perfectly. Thank you very much. Have a great day.
April 28, 2021 at 10:35 pm #287767
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register