WooCommerce

Move Woocommerce Reviews Tab before Description

WooCommerce product reviews are an essential part of any e-commerce website. They provide valuable feedback on products, which can help customers make informed purchasing decisions. However, by default, WooCommerce displays product reviews in a tab on the product page. This can make it difficult for customers to find and read reviews. In this article, we will discuss how to move the WooCommerce product reviews tab before the product description without using a plugin.

Why should you display Reviews Tab before description?

When it comes to e-commerce, product reviews can be a powerful tool for influencing customer purchasing decisions. For this reason, it makes sense to prioritize the reviews tab on your WooCommerce product pages over the description tab.

First, reviews provide social proof that other customers have purchased and been satisfied with the product. This can be especially powerful for products that are new or unfamiliar to the customer, as it can help to build trust and overcome any hesitations they may have about buying.

Additionally, reviews can provide valuable information about the product that may not be included in the description. Customers can share their experiences with the product, including any issues they may have had and how they were resolved, as well as any tips or tricks they have for using the product. This can help customers to make more informed purchasing decisions, and can also help to identify any areas where the product could be improved.

Another benefit of prioritizing reviews over the description is that it can help to increase user engagement on your website. When customers are able to read reviews and leave their own, they are more likely to spend more time on your website, which can help to increase the chances of them making a purchase.

Finally, by prioritizing reviews over the description, you can also take advantage of the power of user-generated content. When customers leave reviews, they are effectively creating content that can help to improve your website’s search engine rankings, as well as helping to attract more customers to your site.

More Articles:
Display Woocommerce Product Reviews outside of Tab.
Add Buy Now Button in WooCommerce Without Plugin.
Woocommerce change Add to cart text if already at Cart.

Video Tutorial [Hindi Language]

best woocommerce theme 2023

Steps to move reviews tab before description.

It is important to note that you should use child theme of your main theme. If you have not yet created one, follow this article to crate child theme.

Follow below steps.

1) Locate functions.php file.

Go to Appearance > Theme File Editor > functions.php. Refer below image.

how to access theme file editor
how to access theme functions or functions.php

2) Add below code.

Add below code at the end of functions.php file and click on Update File.

/**
 * Move Reviews tab before Description tab
 */
add_filter( 'woocommerce_product_tabs', 'wpamit_move_product_review_tab', 1005 );

function wpamit_move_product_review_tab( $tabs ) {
	global $product, $post;

	$new_tabs = array();

	if ( comments_open() ) {
		$new_tabs['reviews'] = $tabs['reviews'];
		unset( $tabs['reviews'] );

		if ( $post->post_content ) {
			$new_tabs['description'] = $tabs['description'];
			unset( $tabs['description'] );
		}

		if ( $product && ( $product->has_attributes() || apply_filters( 'wpamit_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
			$new_tabs['additional_information'] = $tabs['additional_information'];
			unset( $tabs['additional_information'] );
		}

		$tabs = array_merge( $new_tabs, $tabs );
	}

	return $tabs;
}

That’s it! I hope you are now able to move reviews tab before description without plugin.

2 thoughts on “Move Woocommerce Reviews Tab before Description

  • function.php code not working, still getting Scrape key check failed. Please try again.

    Reply
    • Please ensure there are no syntax errors. Also, Make sure the code does not conflict with existing functions or plugins.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *