• Hi guys

    I have small challenges showing function hook in elementor custom loop.
    It has been tested in a shop without an elementor and it works fine, but in the shop with an elementor and with a custom loop it does not work. Working instalayion is with Astra light theme, your plugin and elementor pro.

    Is there anything that can tell me what it can be the issue?
    Thanks

    function sv_add_logo_above_wc_shop_image() {
    if ( is_product_category( ‘test1’ ) ) {
    echo ‘‘;
    } elseif ( is_product_category( ‘test2’ ) ) {
    echo ‘‘;
    }
    }
    add_action( ‘woocommerce_before_shop_loop_item’, ‘sv_add_logo_above_wc_shop_image’, 9 );

Viewing 1 replies (of 1 total)
  • Thread Starter salac

    (@salac)

    // Kategori logo billede visning
    function sv_add_logo_above_wc_shop_image() {

    if ( is_product_category( ‘georg-jensen’ ) ) {
    echo ‘‘;
    } elseif ( is_product_category( ‘kay-bojesen’ ) ) {
    echo ‘‘;
    }
    }
    add_action( ‘woocommerce_before_shop_loop_item’, ‘sv_add_logo_above_wc_shop_image’, 9 );

Viewing 1 replies (of 1 total)

The topic ‘Elementor custom loop function hook’ is closed to new replies.