Support » Plugin: WooCommerce » Add (promo) text above product image

  • Resolved edcroteau


    I was using this code to add text above the product image but it is no longer working. Any ideas of what needs to be modified to get this to work again?

    function sv_add_text_above_wc_product_image( $img_html ) {
    echo '<h3 style="text-align: center;">FREE SHIPPING</h3>';
       return $img_html;
    add_filter( 'woocommerce_single_product_image_html', 'sv_add_text_above_wc_product_image' );

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK


    That filter doesn’t seem to exist in the core WooCommerce code. You’ll need to update the hook or filter being used.

    For possible hooks/filters, have a look at the plugin found at: – It will give you a reference guide of all the hooks/filters being executed on any given page.

    Plugin Support Hannah S.


    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.