Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1317214

    I am experiencing an issue with embedding a JotForm form onto my website. After doing some troubleshooting with JotForm Support I found that it has something to do with my Enfold theme. When I use the Default Editor to embed the form it works fine but if I use the Advanced Editor then when I try to preview or publish the form I immediately see a 403 Forbidden error. My WordPress core, theme, and plugins are up-to-date, I also tried disabling all plugins to make sure there was no interference from them, ultimately it looks like it’s the Enfold theme that is somehow causing this problem. I’ve embedded JotForm forms on other WordPress websites using Enfold so I’m not sure what could be causing this issue?

    #1317413

    Hey MediaMix1,

    Thank you for the inquiry.

    Are you embedding a script or input tag in a code block element? Adding these kind of tags could break the page. You might have to create a custom shortcode for the embed script so that you do not have to add the tags directly in the builder.

    // https://codex.wordpress.org/Shortcode_API

    Example of a custom shortcode from the documentation.

    // [bartag foo="foo-value"]
    function bartag_func( $atts ) {
    	$a = shortcode_atts( array(
    		'foo' => 'something',
    		'bar' => 'something else',
    	), $atts );
    
    	return "foo = {$a['foo']}";
    }
    add_shortcode( 'bartag', 'bartag_func' );
    

    The custom shortcode can be used like this.

    [bartag]
    

    Best regards,
    Ismael

    #1317515

    I tried adding the embed code in a code block and in a text block. I don’t know how to create a custom shortcode but I think I’ve found a workaround. I have the form published on a page using the default editor, then on my contact page I can use the “Page Content” element to add the form to the page.

    #1317701

    Hi,

    Thanks for the update, and I’m glad that you found a solution for your problem. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.