Change product page box Additional Information

Good Morning!

In the product page the information that appears first is the “Description” field, it would be possible to change and highlight first the “Additional Information”?

Hi There @feradams

Thanks for writing in! It is possible to re-arrange your tabs. First you need to setup a child theme and activate it by following our guide here (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

Then try adding the following code into your child theme’s functions.php file.

/**
 * Reorder product data tabs
 */
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {

	$tabs['additional_information']['priority'] = 5;	// Additional information first
	$tabs['description']['priority'] = 10;			// Description second
	$tabs['reviews']['priority'] = 15;			// Reviews third

	return $tabs;
}

Hope that helps.
Thanks!

Thanks for the answer…

I already have the child thema … I updated the file function.php and nothing happened. I cleaned the history.

I do not know what to do.

Hi There @feradams

I have tested the provided code on my local test site, and it is functioning properly.

Could you please try clearing full cache and re-test your issue again. You can refer to the following resource here (https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/).

If you’re still having issues, provide us with your WordPress credentials along with your FTP credentials in a secure note to check your issue further.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.