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:


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


Copy this code snippet:

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

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


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