Hi @pc87
I hope you’re well today!
je remercie ‘Adam’ qui à résolu mon problème ‘forminator pour le r?le utilisateur editeur’
I’m happy I could help ??
j’ai un autre problème mettre un iframe dans le champ html
j’ai trouvé ceci mais cela plante wordpress
I checked and the code shared in this linked article is fine, it should work correctly.
But there are two issues:
1. I noticed that when copy-pasting that code there are some problems with character encoding, replacing some characters incorrectly – that is causing fatal errors out of the box
2. when putting iframe code into that code, you need to pay a lot of attention to double- and single quotes/apostrophes inside iframe code. This is very “fragile” and can cause issues that are difficult to troubleshoot.
With that said, please try copying the code from here (instead of that article). It’s the same code but with corrected characters:
<?php
function forminator_append_gmap() {
?>
<script type="text/javascript">
jQuery(function($) {
$('#html-1').append('IFRAME CODE HERE');
});
</script>
<?php
}
add_action( 'wp_footer', 'forminator_append_gmap', 99 );
If it still doesn’t work, please also share (preferably put at https://pastebin.com and include link to it in response below) your iframe code that you want to use.
We’ll look into it closer then.
Best regards,
Adam