[ad_1]
Hey all,
I wanted to post this here in case it helps someone in the future.
With Elementor Pro, you get a WooCommerce widget for displaying Related Products. The file for this widget is located in your plugins folder at:
/plugins/elementor-pro/modules/woocommerce/widgets/product-related.php
Near the bottom of this file, where it prints out the content of the widget, you will see this line:
echo wp_kses_post( $related_products_html );
wp_kses_post is a function that strips out HTML tags. This breaks the Pixel Manager for WooCommerce plugin. Pixel Manager attempts to inject a meta tag and a script tag, but these tags are stripped out, leaving raw JavaScript visible in your theme.
You can change the above line in Elementor Pro to the following to fix this:
echo $related_products_html;
However this is unsafe and not best practice. I’m hoping the authors of Pixel Manager can come up with a way around this in a future update.
- This topic was modified 25 minutes ago by .
- This topic was modified 24 minutes ago by .
- This topic was modified 24 minutes ago by .
