Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

Woo Commerce Single Product Page customization

Woo Commerce Single Product Page customization

If you are running a Woo Commerce powered e commerce website and want to customize single product page then we can do it by editing functions.php file. Like I want to show product description below Title, Hide or remove Product Description Tab,  Hide or remove  related product.

Show product description below Title in woo commerce single product page

Just edit functions.php and add code given below and save

add_action( 'woocommerce_single_product_summary' , 'show_custom_text', 10 );
function show_custom_text() {
  global $product;
  echo $product->description;
	echo '<br/>';
}

Remove Product Description Data Tab in woo commerce single product page

Just edit functions.php and add code given below and save

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );

Remove Related product in woo commerce single product page

Just edit functions.php and add code given below and save

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

You can also remove default sorting drop down from Woo Commerce product Page, just click the link below

Woo Commerce How to Remove the Default Sorting Drop down

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments