In WooCommerce, the title of a store page is usually displayed by default as "Shop". However, depending on your business needs, you may want to change this title to better reflect your brand or product type. In this post, we'll show you in detail how to use the WooCommerce store page title with a simple setup and SEOPress The plugin is optimized to help you customize the store page.
1. Use the default WordPress page editor to change the title.
The WooCommerce store page is a default page and its title can be changed through the WordPress page editor. Here are the steps:
Steps:
- Log in to your WordPress dashboard.
- Navigate to "web page" -> "All Pages".
- In the list of pages, find the Store page that WooCommerce automatically generates and click Edit.
- Change the page title to the custom title you want (e.g., "Our Products"or"Featured Products").
- Click "save (a file etc) (computing)".
Attention: With this method, you can easily set a unique title for the store page without having to change any code.
2. Changing WooCommerce store page titles with the SEOPress plugin
SEOPress is a powerful SEO plugin that helps you customize page titles, descriptions, and optimize SEO settings. You can use SEOPress to set up custom titles and SEO elements for WooCommerce store pages.
Steps to change the title using SEOPress:
- Install and activate the SEOPress plug-in:
- Go to WordPress dashboard, click "Plugins" -> "Install New Plugin", search for "SEOPress", install and activate it.
- Edit the WooCommerce store page:
- Navigate to Pages -> All Pages, find the WooCommerce store page and click on thecompilerThe
- Adjust the SEOPress setting:
- At the bottom of the store page editor, you'll see SEOPress' "SEO Metadata"Part.
- In "caption" field to enter the title of the custom store page you want.
- SEOPress supports the use of variables to automatically generate headings, such as
%title%
will automatically get the title of the page. You can enter a custom title directly, or use variable formatting to create a dynamic title.
- Add SEO-friendly descriptions:
- In "descriptive" field, enter a concise, compelling description that contains relevant keywords. This will serve as the meta description of the page in search engines.
- Save and update:
- Once you've finished editing the title and description, click "update" button to save the page settings.
With SEOPress, it's easy to manage the SEO metadata of your WooCommerce store pages to ensure they're search engine friendly.
3. Manually modifying WooCommerce template files
if youFamiliarity with the codeAnd if you want to customize the title by modifying the template file, you can do it through WooCommerce templates.
Open the WPCode plug-in::
- In the left menu, click WPCode -> "Code snippet."The
Add new code snippet::
- Click on the page's "Add new code snippet" Button.
Select Code Type::
- In the pop-up page, select "Add Your Custom Code (New Snippet)", and then in the Code Type drop-down menu on the right side of the page, choose "PHP Snippet"The
Paste code::
- Paste the following code into the code editing area
add_filter('woocommerce_page_title', 'new_woocommerce_page_title');
function new_woocommerce_page_title( $page_title ) {
if( $page_title == 'Shop' ) {
return 'New Shop Title'; // 这里输入你希望显示的商店页面标题
}
return $page_title;
}
Modify Store Title::
- commander-in-chief (military)
'New Shop Title'
Change the title of the store page to what you want it to show. For example, if you want the title to read "Featured Products", you can change it like this:
return 'Featured Products';
4. Add SEO-friendly titles and descriptions
Changing the title of your store page isn't just about aesthetics, it also affects your SEO rankings. By using the SEOPress plugin, you can optimize titles and meta descriptions in order to improve the visibility of your WooCommerce store pages in search engines.
SEO Tip:
- Make sure the title is clear and contains relevant keywords.
- Don't overstack keywords, keep it natural.
- Control the length of the title to be between 50-60 characters.
- Use SEOPress's variable capabilities to auto-populate dynamic content, such as the
%site_title%
,%current_date%
etc., to improve page flexibility.
Meta description optimization:
- Write descriptions that entice users to click, are concise and relevant to the page.
- Use one or two long-tail keywords to help better match user search intent.
- Limit the length of the meta description to 150-160 characters.
With these SEO tips, you can ensure that your WooCommerce store pages have higher visibility and click-through rates in search engines.
summarize
WooCommerce offers a variety of ways to customize the titles of your store pages, from simple page editor changes to advanced SEO optimization with the SEOPress plugin to manually modifying code snippets, each of which is effective in improving user experience and optimizing search engine rankings.