Knowledge Base
CSS
Plugins
- Locked out from Updraftplus Dashboard
- MAINWP – Kod för att se Server-IP
- Elementor List Icon fix
- Browser downloads file when opening a page
- Elementor Scroll Offset Menu Anchors
- Widget Panel Not Loading
- Align checkboxes to the right
- Greatly Improve the Entrance Animations
- Limit Elementor Posts Widget text Length
- Change Product Description Tab and Titles in WooCommerce
- Tweak Crocoblock JetEngine Radio Filter
Wordpress
Browsers
Windows
Server
Themes
WooCommerce
< All Topics
Print
Change Product Description Tab and Titles in WooCommerce
Posted2025-03-19
Updated2025-06-25
ByLasse
Description & overview
Code rename description & overview
Paste the code in the child theme → function.php
add_filter( 'woocommerce_product_tabs', 'misha_rename_description_tab' );
function misha_rename_description_tab( $tabs ) {
$tabs[ 'description' ][ 'title' ] = 'Overview';
return $tabs;
}
Dölja tab Additional information
Paste the code in the child theme → function.php
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['additional_information'] );
return $tabs;
}
Rename Description Tab
Code just rename description
Paste the code in the child theme → function.php
add_filter( 'woocommerce_product_description_tab_title', 'misha_rename_description_tab' );
function misha_rename_description_tab( $title ) {
$title = 'Overview';
return $title;
}
Hide Description (H2) in Description Tab
Paste the code in the child theme → function.php
add_filter( 'woocommerce_product_description_heading', '__return_null' );
String Collection
Collection of various strings for renaming
Paste the code in the child theme → function.php
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
function woo_rename_tabs( $tabs ) {
$tabs['description']['title'] = __( 'Produktinfo' ); // Rename the description tab
return $tabs;
}
// Change "Add to Cart" > "Add to Bag" in Single Page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_single_page_add_to_cart_callback' );
function woocommerce_single_page_add_to_cart_callback() {
return __( 'Lägg till', 'text-domain' );
}
//Change the billing details heading and the billing information tab label
function wc_billing_field_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Faktureringsadress' :
$translated_text = __( 'Kundinformation', 'woocommerce' );
break;
case 'Faktureringsdetaljer' :
$translated_text = __( 'Kunddetaljer', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 );
// Alter WooCommerce View Cart Text
add_filter( 'gettext', function( $translated_text ) {
if ( 'View cart' === $translated_text ) {
$translated_text = 'Visa varukorg';
}
return $translated_text;
} );
Table of Contents