(customization) What file I have to modify to add a label on thumbnail of products?

This topic has 4 replies, 3 voices, and was last updated 1 month, 2 weeks ago ago by Tony Rodriguez

  • Avatar: Wikafy
    Wikafy
    Participant
    July 9, 2026 at 13:29

    I would like to locate what file I have to modify for adding a customization of flags/label on thumbnails of products on a corner.

    I only need to locate the files involed or the location I need to use in xstore-child to implement that. Like adding label on that little red box I put on the img.

    Best regards, 😀

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 9, 2026 at 15:58

    Hello @Wikafy,

    You can add custom content by using hooks in the child-theme/functions.php file. For example:

    add_filter('etheme_product_grid_list_product_element_image', function($image, $product, $local_settings) {  
        $badge .= 'Text';  
        return $image . $badge;  
    }, 10, 3);

    You can find the list of available hooks and filters in the following post:
    https://www.8theme.com/topic/add-custom-content-after-product-title-on-archive-page/#post-470675

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Wikafy
    Wikafy
    Participant
    July 9, 2026 at 18:56

    Thanks for the support! My topic “(customization) What file I have to modify to add a label on thumbnail of products?” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 9, 2026 at 18:56

    Dear Wikafy,

    It’s great having you in our WordPress & WooCommerce community!

    Every insight you share helps us refine XStore and build tools that empower thousands of online store owners worldwide.

    Together, we grow stronger with every release.

    Topic closed.
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘(customization) What file I have to modify to add a label on thumbnail of products?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.