![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: jotform
-
AuthorPosts
-
August 17, 2021 at 11:04 pm #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?
August 19, 2021 at 5:21 am #1317413Hey 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,
IsmaelAugust 19, 2021 at 4:40 pm #1317515I 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.
August 21, 2021 at 5:47 am #1317701 -
AuthorPosts
- You must be logged in to reply to this topic.