• Resolved vendigitalsrls

    (@vendigitalsrls)


    Hello, a customer of mine downloaded Yith Badge Management for free. I would like to bring out the badge in the product’s featured image, but I have developed a category with Elementor’s Loop Grid widget. How do I get it out? Now it doesn’t show up, it only shows up in the featured images of the products that are in the classic WooCommerce pages

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

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

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    Please, try to use the following code in the functions.php of your active theme:

    function yith_add_container_badge_start( $element ) {
    if( 'theme-post-featured-image' === $element->get_name() ) {
    do_action( 'yith_wcbm_theme_badge_container_start' );
    }
    }
    add_action( 'elementor/frontend/widget/before_render', 'yith_add_container_badge_start' );

    function yith_add_container_badge_end( $element ) {
    if( 'theme-post-featured-image' === $element->get_name() ) {
    do_action( 'yith_wcbm_theme_badge_container_end' );
    }
    }
    add_action( 'elementor/frontend/widget/after_render', 'yith_add_container_badge_end' );

    Please, try it and let me know if it can helps you.

    Have a good day.

    Thread Starter vendigitalsrls

    (@vendigitalsrls)

    It works!
    Thank you very much

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