Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Click Issue With gtm4wp_productdata SPAN and Its Product URL

$
0
0

Replies: 0

Hi,

I have a mini carousel inside the product card. Its content is draggable and it is wrapped with a link wrapper. While dragging, the link shouldn’t be clicked.

After I’ve added a SPAN element with a class “gtm4wp_productdata” via implementing the proper WC hook, now mini carousel couldn’t be dragged without doing a click (with a mouse).

I’ve tested enough to see it’s up to that SPAN and, to be more precise, to its attribute with a link: data-gtm4wp_product_url.

When I delete the SPAN, or just remove or change the URL inside it, the carousel content becomes draggable without doing a click. But, than I get console.log errors for some GTM4WP JS functions.

I’ve made a short screen recording: https://a.cl.ly/lluEeE5l

Link to site: https://pokanails.com/shop/

Is it possible to add a filter to disable that Product URL in the SPAN element? Or to somehow disable this behavior?

I’m thinking of removing an attribute: data-gtm4wp_product_url from the plugin’s code by hand. Don’t know if it will break something.

BR
Miljenko


Viewing all articles
Browse latest Browse all 59525

Trending Articles