WooCommerce- How to change ‘In Stock’ / ‘Out of Stock’ text displayed on a product page

By Cronos Editorial Staff on May 06, 2022
Est. Reading: 1 minute
Contents

change ‘In Stock’ / ‘Out of Stock’ text in WooCommerce

Log in to the WordPress admin panel, navigate to the Appearance -> Editor tab and open the custom-functions.php (or Function.php of your main theme) file for editing:

WooCommerce. How to Change In Stock Out of Stock text displayed on a products page 1 1024x555 1

Add the following code to the bottom of the custom-functions.php (or Function.php of your main theme) file. You can change the Available! and Sold Out text to be whatever you like:


					
				

WooCommerce. How to Change In Stock Out of Stock text displayed on a products page 2 1024x670 1

Go to your site to check Product pages, make sure to refresh the page:

WooCommerce. How to Change In Stock Out of Stock text displayed on a products page 3 1024x527 1 WooCommerce. How to Change In Stock Out of Stock text displayed on a products page 4 1024x539 1

Read More: Thrive Architect Review (2022) – is it worth it?

Elementor Review – How Good Is It In 2022?

How To Increase The WordPress Upload Limit On An AWS Lightsail Bitnami Installation

Terraform vs CloudFormation: Comparing The Two Infrastructure As Code Offerings (2022)

Related Posts

Leave a Reply

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