How to use Visualizer with Advanced Custom Fields?

When trying to create a Visualizer Chart Shortcode in the ACF Field and showcase that field using the Elementor Custom Field Widget, the shortcode might break and start showing the code snippets on the page.

In such cases, the problem comes because the editor might not allow the use of style tags. To solve this issue, follow these steps:

1

Navigate to the active theme's functions.php file.

2

Copy this code snippet:

add_filter( 'wp_kses_allowed_html', function( $allowed_tags ) {
	$allowed_tags['style'] = array();
	return $allowed_tags;
} );
3

Paste it into the theme's functions.php file.

4

Save the changes and check the live website.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us