Tagged: Code block
We are attempting to use the “Code Block” functionality to add a contact form using CSS/JS. In the instance that the form uses <input type="text">
fields, everything displays correctly and the “Code Block” element remains intact.
The moment that you add the <textarea></textarea>
element so that you can display a comment/message field and save, the editor appears to recognize it as a non-HTML element and it strips all of the code from the “Code Block” element, and some of the right-hand elements suddenly shift to the main content area, etc.
Is Enfold using “textarea” somewhere in the theme that would be causing this issue? The “Code Block” should recognize everything in it as HTML and that does not appear to be happening.
Screenshot of what happens after you add the textarea element and save: https://tinyurl.com/y5gn7cub
Hey cr,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Also please share the full code you are trying to use.
Best regards,
Rikard
Hi,
We are sorry for the late reply!
I could reproduce the issue on my installation and will report it to our devs.
In the meantime, you can create a shortcode and insert it in Code Block element to display your form. I attached the code you can insert in Functions.php file to create a shortcode [custom_form_sc] :)
Best regards,
Yigit