Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #630180

    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?

    #630800

    Hey cpetroff1321,

    Can you please try adding the code in Text Block element on text tab and check if that helps?

    Best regards,
    Yigit

    #630814

    Unfortunately I still have the same problem…the form displays fine on the site, but I’m still getting the “loading” icon.

    #631323

    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

    #631487

    That did the trick, thank you! I appreciate the quick and helpful support.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘iframe not working in codeblock’ is closed to new replies.