# Product Subtitle for WooCommerce

**Contributors:** SpiderWares, jthemesstudio  
**Tags:** product subtitle, product subtitle for woocommerce, subtitle, wc product subtitle, woocommerce product subtitle 
**Version**: 1.4.0 
**Requires at least:** 5.2  
**Tested up to:** 6.8.1  
**Requires PHP:** 7.4  
**Stable tag:** 1.4.0  
**License:** GPL-2.0+  
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html  
**Text Domain:** product-subtitle-for-woocommerce  
**Domain Path:** /languages  

Easily add customizable subtitles to your WooCommerce product pages to enhance product listings and improve SEO performance.  


## Description 

The **Product Subtitle for WooCommerce** plugin allows you to add customizable subtitles to your WooCommerce products. You can display these subtitles in various positions on different pages, improving the look of your product listings and enhancing your SEO.  


## 🎥 Watch a Quick Tutorial
<iframe width="800" height="375" src="https://www.youtube.com/embed/SJ9HmXtRNJQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>  
Click the image above to watch a quick tutorial on how to use the **Product Subtitle for WooCommerce** plugin.  


## 🚀 Features 

### ✅ **Customizable Subtitles**  
– Easily add and customize subtitles using the WordPress editor.  

### ✅ **Flexible Display Options**  
– Display subtitles in multiple positions on different WooCommerce pages:  
  – **Shop Page**: Before/After Product Title, Before/After Product Rating, Before/After Product Price.  
  – **Single Product Page**: Before/After Product Title, Before/After Product Price, Before Add to Cart Button.  
  – **Mini-Cart, Cart, Checkout, Thank You, My Account & Order Emails**: Before/After Product Title.  

### ✅ **Visibility Controls**  
– Show/hide subtitles on shop, single product, cart, checkout, view order, mini cart, and order emails.  

### ✅ **Shortcode Support**  
– Use `[PSWC_Subtitle]` to display subtitles anywhere on your site.  
– Use `[PSWC_Subtitle product_id="86"]` to display a subtitle for a specific product.  
– You can specify the HTML tag for the subtitle using the `tag` attribute: `[PSWC_Subtitle tag="p"]`   `[PSWC_Subtitle tag="h1"]`   `[PSWC_Subtitle tag="span"]`  
– **Supported HTML Tags**: `p`, `small`, `span`, `h1`, `h2`, etc.

### ✅ **SEO Plugin Integration**  
– Fully compatible with **Yoast SEO, Rank Math SEO, SEOPress**, and more.  
– Use **`%%pswc_subtitle%%`** in meta titles and descriptions to boost SEO visibility.  
– For **Rank Math SEO**, use **`%customfield(pswc_subtitle)%`** to include the subtitle in meta tags.  

### ✅ **Style Customization**  
– Global CSS Class: `product-subtitle`  
– Product-Specific CSS Class: `product-subtitle-86`  


## Installation

1. Upload the `product-subtitle-for-woocommerce` folder to `/wp-content/plugins/`.  
2. Activate the plugin through the **Plugins** menu in WordPress.  
3. Configure settings and add subtitles through the **Product Edit** screen.  


## Frequently Asked Questions  

### ❓  How do I add a subtitle to a product?  
Go to the **WooCommerce Product Edit** screen and find the **Subtitle** option in the product data section.  

### ❓  Can I customize the subtitle’s position?  
Yes, you can choose from multiple positions on different WooCommerce pages.  

### ❓  Is this plugin compatible with SEO plugins?  
Yes! The plugin works with **Yoast SEO, Rank Math SEO, SEOPress**, and others.  

### ❓  How do I use the shortcode?  
– **Display subtitle for the current product:**  
  “`[PSWC_Subtitle]“`  
– **Display subtitle for a specific product:**  
  “`[PSWC_Subtitle product_id="86"]“`  


## Screenshots

1. **Product Subtitle Settings** – Configure subtitle options in the plugin settings page.  
2. **Shop Page Subtitle** – Example of a subtitle displayed on the shop page.  
3. **Single Product Page Subtitle** – Subtitle displayed on a single product page.  


## Changelog

### 🆕 **1.4.0**  
- Improved security and fixed bugs.

### ✅ **1.3.9**  
- Ensure compatibility with the Astra theme for the Single Product Page.

### ✅ **1.3.7**  
- Fixed **Rank Math SEO** issue.
- Implemented **`%customfield(pswc_subtitle)%`** support for Rank Math SEO.  

### ✅ **1.3.6**  
– Fixed variation product subtitle issue on **Cart & Checkout pages**.  

### ✅ **1.3.3**  
– Added **Product Subtitle field** in the new **Block Editor**.  
– Improved **Elementor Widget** for Product Subtitle.  

### ✅ **1.3.2**  
– Minor Bug Fixes & Stability Updates.  

### ✅ **1.3.1**  
– Fixed shop page warnings.  
– Fixed issue where **HTML tags were being removed** on save/update.  

### ✅ **1.3.0**  
– Added new hooks for **Single Product Page**.  
– Fixed subtitle positioning issues on **Shop & Single Product pages**.  

### ✅ **1.2.0**  
– Added **Elementor Widget** & **Gutenberg Block** support.  
– Fixed Elementor Theme Builder bug.  

### ✅ **1.1.0**  
– Minor Bug Fixes & Stability Update.  

### ✅ **1.0.8**  
– Added controls for **My Account Page, Order Emails, and Thank You Page**.  
– Minor Bug Fixes.  

### ✅ **1.0.6**  
– Added **Multilanguage Support**.  

### ✅ **1.0.0**  
– Initial Release.  


## Upgrade Notice

### 🔹 **1.0.0** – Initial Release.  

## 📞 Support

For any issues or questions, please visit our [Support Page](https://wordpress.org/support/plugin/product-subtitle-for-woocommerce/).  


Thank you for using **Product Subtitle for WooCommerce**! 🚀 Enhance your product pages today!  