Change the 'out of stock' label in Neve

⏪ Before

⏩ After

To change the "out of stock" label in the Neve theme you need to follow the below steps:

  • Download the ready-made child theme for Neve from this guide.
  • Install it as a new theme and activate it.
  • Add the following code at the end of the functions.php file of the child theme.

/* Themeisle support - change 'out of stock' label */
function custom_out_of_stock() {
	return "Sold out";
}
function change_out_of_stock_text() {
	add_filter( 'nv_out_of_stock_text', 'custom_out_of_stock' );
}
add_action( 'after_setup_theme', 'change_out_of_stock_text' );

Change the "Sold out" text in the above code as per your choice.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us