• Resolved evalast

    (@evalast)


    All the thumbnails in the cart are run through the following woocommerce_cart_item_thumbnail filter:

    $thumbnail = apply_filters( ‘woocommerce_cart_item_thumbnail’, $_product->get_image(), $cart_item, $cart_item_key );

    Any idea how to add a custom class to the tag of the thumbnail through a function in the functions.php file of my child theme?

    • This topic was modified 4 years, 2 months ago by evalast.
    • This topic was modified 4 years, 2 months ago by evalast.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a cutom class to the cart thumbnail IMG tag throught a function?’ is closed to new replies.