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
- Elementor Posts Widget Title Length
- Change Product Description Tab and Titles in WooCommerce
Wordpress
- Problems with Cronjobs?
- Increase WordPress Memory Limit
- Admin Dashboard not Displaying Correctly
- Critical error on this website
- Disable file editing in WordPress admin
- Password Protected Pages
- Hemsida dålig laddtid vid besök första gången
- Hjälp med koder (Multisite)
- How to add text under add to cart
Browsers
Windows
Server
Themes
WooCommerce
< All Topics
Print
Change Product Description Tab and Titles in WooCommerce
Posted2025-03-19
Updated2025-05-27
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;
}
Just Description
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;
}
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