Tagged: iframe
Hi, I am using a codeblock to insert an iframe element, which is a contact form. The form appears on the web page, but when I go back into the editor, I keep getting the “loading” icon, and the editor won’t open. If I delete the iframe code, the editor works just fine again. Am I doing something wrong?
Hey cpetroff1321,
Can you please try adding the code in Text Block element on text tab and check if that helps?
Best regards,
Yigit
Unfortunately I still have the same problem…the form displays fine on the site, but I’m still getting the “loading” icon.
Hi,
Try enclosing the code in a shortcode instead, you can do that with this code in functions.php:
function custom_shortcode_func() {
ob_start();
?>
PUT YOUR CODE HERE
<?php
$output = ob_get_clean();
return $output;
}
add_shortcode('my_shortcode', 'custom_shortcode_func');
Then you’d use [my_shortcode]
.
Best regards,
Josue
That did the trick, thank you! I appreciate the quick and helpful support.