Skip to main content
Login Join
Snippet · PHP

Add a Custom Text After the WooCommerce Product Price

Shared by Amit Dholiya · September 2, 2026

4 views
1 upvote
Back to Snippets

Want to display extra information like tax details, shipping info, EMI availability, or payment offers directly below the product price? You can easily do this using a WooCommerce action hook.

Steps

  1. Open your theme’s functions.php file.

  2. Add the code below.

  3. Save the file.

  4. Open any WooCommerce product page.

Done — your custom text will appear immediately below the product price.

function add_text_after_product_price() {
    echo '<p class="custom-price-message">
        Free shipping & easy returns available.
    </p>';
}

add_action(
    'woocommerce_single_product_summary',
    'add_text_after_product_price',
    11
);
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments