doesn’t show up | WordPress.org

[ad_1]

Hello @anthonyflibustiers !

Hope you’re having a good day!

Adding iframe elements is prevented and enforced by WordPress (and plugins need to adhere to that), that’s why it’s being removed. Administrators can still see it though.

Can you try the following mu-plugin?

<?php
if ( ! function_exists( 'wpmudev_forminator_enable_iframe' ) ) {

	function wpmudev_forminator_enable_iframe() {

		$form_exists = has_shortcode( get_the_content(), 'forminator_form' );
		if ( $form_exists ) {
			?>
        <script type="text/javascript">
        (($, d) => {
            $(d).ready(function() {
                $("#html-1").html('<iframe style="border: none;" src="Please add you source here" width="100%" height="400"></iframe>');
            });
        })(jQuery, document);
        </script>
<?php
		}
	}
	add_action(
		'wp_footer',
		'wpmudev_forminator_enable_iframe',
		10
	);
}

Please replace the iframe code with yours.

To install:
– copy the code to a .php file with any name
– upload the file to wp-content/mu-plugins

Kind regards,
Pawel

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer