• Hi,

    I am trying to add a text and following the example in this site https://www.businessbloomer.com/woocommerce-add-text-product-shop-page-loop/

    I placed this code at the bottom of the functions.php but didn’t work.

    add_action( ‘woocommerce_after_shop_loop_item’, ‘bbloomer_show_free_shipping_loop’, 5 );

    function bbloomer_show_free_shipping_loop() {
    echo ‘<p class=”shop-badge”>Free Shipping</p>’;
    }

    I tried it with all plugin deactivated except for WooCommerce and still not working.

    Tried it with other theme and it did work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @madho07
    We will consult with the developers team and get back to you regarding this case.

    Regards
    AF help team

    Hello @madho07
    Would you please add this code on functions.php file,

    add_action( 'shopical_woocommerce_after_shop_loop_item_title', 'shopical_show_free_shipping_loop' );
    function shopical_show_free_shipping_loop() {
        echo '<span class="shop-badge">Free Shipping</span>';
    }

    Hope this works.

    Note: Child Theme is recommend to customize the theme.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding text to Product Loop is not working’ is closed to new replies.