Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Michel,

    This span element is required to extend product lists with product meta data in order for product impression and product click actions to work.

    Normally it does not break anything as it also includes a style attribute with display:none

    I am sorry but all I can say is to experiment with CSS rules, there must be a conflict there.

    Thread Starter mrigatti

    (@mrigatti)

    Thanks for you answer,
    … gtm4wc was not the issue ??

    After some investigations, the way Uncode theme is managing the woocommerce hook “woocommerce_before_shop_loop_item” was a bit strange.
    Even with a simple echo “test” i got the same issue.

    => i’ve decided to use a hook inside the product of the loop of products, by changing line 2285 of woocemmerce.php of gtm4wc with this hook call : woocommerce_before_shop_loop_item_title

    And “_title” did the trick ?? the span is now included, close to the title in the loop without interfering with the layout builder of Uncode

    engineroom

    (@engineroom)

    Hi there,

    We are having the same problem. Is there a way to alter the below, without editing the core plugin code:

    add_action( ‘woocommerce_before_shop_loop_item’, ‘gtm4wp_woocommerce_before_shop_loop_item’ );

    Need to alter it to:

    add_action( ‘woocommerce_before_shop_loop_item_title’, ‘gtm4wp_woocommerce_before_shop_loop_item’ );

    Assume this will still allow the tracking to work?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    This suggests that for some reason the woocommerce_before_shop_loop_item hook is not included in your theme. If this works for you, then you will need to update this line each time a new GTM4WP version is released but I can not currently change the plugin code with that since there might be others shops where your hook will not work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘conflicting with theme UNCODE in POST Blocks’ is closed to new replies.