WooCommerce is a powerful eCommerce plugin for WordPress. It is highly customizable and offers a lot of features to make your online store successful. One of the things you can customize in WooCommerce is the page title.
The page title is the text that appears in the browser tab when someone visits your store. By default, WooCommerce will use the name of your store as the page title. However, you may want to change this to something else, such as the name of your product or category.
Changing the page title in WooCommerce is relatively easy. You just need to add a few lines of code to your theme’s functions.php file. In this article, we’ll show you how to change the page title in WooCommerce step by step.
Before we get started, please keep in mind that you should not make any changes to your site without first creating a backup. This will ensure that you can always revert back to a previous version if something goes wrong.
Let’s get started!
Step 1: Create a Backup
The first thing you need to do is create a full backup of your WordPress site.
There are many WordPress backup plugins available, but we recommend using UpdraftPlus. It’s free and easy to use.
Once you’ve installed and activated UpdraftPlus, go to Settings » Backup and click on the ‘Create a new backup’ button. On the next screen, select all of the options and then click on the ‘Backup Now’ button.
Step 2: Edit Your Theme’s Functions.php File
Next, you need to edit your theme’s functions.php file and add the following code:
PRO TIP: If you are not familiar with code or are not comfortable making code changes to your site, we recommend that you seek help from a professional developer. Making the wrong change to your site’s code can break your site, so it’s important to be careful when making changes.
function wc_custom_change_page_title( $title ) {
global $post;
if ( is_shop() ) {
$title = "Your New Shop Title";
} elseif ( is_product() ) {
$title = $post->post_title;
} elseif ( is_product_category() || is_product_tag() ) {
$term = get_queried_object();
if ( $term ) {
$title = $term->name;
if ( is_product_category() ) {
$parents = get_ancestors( $term->term_id, 'product_cat' );
foreach( array_reverse( $parents ) as $parent ) {
$ancestor = get_term( $parent, 'product_cat' );
if ( !is_wp_error( $ancestor ) && $ancestor ) {
$title .= ' › ' . esc_html( stripslashes( strtolower($ancestor->name) )); } } } } }
return stripslashes( strtolower($title) ); }
add_filter('pre_get_document_title', 'wc_custom_change_page_title');
?>
10 Related Question Answers Found
One of the first things you’ll want to do when setting up a new WooCommerce store is change the product page title. By default, the title is set to “Shop” – which isn’t very descriptive, and doesn’t give your customers any indication of what they can expect to find on that page. Fortunately, changing the product page title in WooCommerce is a fairly easy process.
It is very easy to change the product title in WooCommerce. You can simply go to the product page and click on the “Edit” button. This will take you to the “Edit Product” page where you can change the product title.
There are a few different ways that you can get the page title in WooCommerce. One way is to simply go to the product page and look in the source code for the title tag. Another way is to use a plugin like WooCommerce SEO which will give you the ability to see the titles of all your pages in the backend of WordPress.
There are two ways that you can change the category title in WooCommerce. One way is to simply hover over the category and click on the edit button. This will bring up a pop-up window where you can change the name of the category.
If you want to change the text label in WooCommerce, there are a few different ways you can do this. You can either edit the translation files directly, or use a plugin like WooCommerce Customizer. If you want to change the text label in WooCommerce, there are a few different ways you can do this.
There are a few different ways that you can change the product page in WooCommerce. One way is to simply edit the product page template file within your theme. If you’re using a child theme, then you can edit the template file within the child theme to make changes.
If you have a WooCommerce store, you might want to change the author of a product from time to time. Maybe you created a product and now someone else will be managing it, or maybe you just want to change the author name for branding purposes. Whatever the reason, it’s easy to change the author of a product in WooCommerce.
If you’re using WooCommerce to sell products on your WordPress site, then you may want to change the default WooCommerce page. By default, WooCommerce will use the Shop page to display your products. However, you can change this by going to the WooCommerce settings page and selecting a different page from the “Shop Page” drop-down menu.
When you set up a WooCommerce store, you can choose which email address is used to send transactional emails to your customers. By default, this is the email address associated with your WordPress user account. However, you may want to use a different email address for your WooCommerce store, or you may need to change the email address associated with your WooCommerce store if your original email address becomes invalid.
In WooCommerce, labels can be changed for products, orders, and other things in the store. For products, labels can be changed under the “Product Data” section when editing a product. Orders can have their labels changed from the “Orders” page in WooCommerce.