
The link to the video:
https://youtu.be/D1dDhkfNaDA
The function code:
function remove_woocommerce_product_tabs( $tabs )
{
unset( $tabs['description'] );
unset( $tabs['reviews'] );
// unset( $tabs['additional_information'] );
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'remove_woocommerce_product_tabs', 98 );
add_filter( 'woocommerce_product_additional_information_heading', 'by_change_additional_information_heading' );
/**
* @return string Modified value for product's "Additional information" text.
*/
function by_change_additional_information_heading() {
return __( 'Property Details', 'mytextdomain' );
}
add_filter('gettext', 'translate_category' );
function translate_category($text) {
$text = str_ireplace('Tag', 'Collection', $text);
return $text;
}
// To change add to cart text on product archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'View Property', 'woocommerce' );
}
Code block to display the categories:
<?php
global $product;
echo 'Province: ' . $product->get_categories( ', ', ' ' . _n( ' ', ' ', $cat_count, 'woocommerce' ) . ' ', ' ' );
?>
CSS Added
ul.tabs.wc-tabs {
display: none !important;
}
div#div_block-4-99 li {
list-style: none;
}
h2.widgettitle {
font-size:18px;
}
.woocommerce .woocommerce-widget-layered-nav h2 {
font-weight:500;
}