• Hello. On my page, using Elementor, I have added a Custom HTML element, and inside added the following HTML:

    <form>
    <div>My Form</div>
    </form>

    (screenshot) If I open the page while logged in to WordPress, the <form> displays as expected (screenshot). But if I open the page while not logged in, the <form> element is missing, but its <div> is still present (screenshot). Why is that occurring, and how can I resolve it?

    * The issue does not occur if I use WordPress text editor.
    * There are no errors in the JS console or PHP error log.

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Carl,

    Thank you for your patience.

    We have checked your custom code our testing site, and it seems to be showing the HTML form tag correctly even when logged out.
    See attached image:
    https://i.imgur.com/pCmtwgd.png

    From your screenshot, I see you are using a different widget than our HTML widget

    Have you tried using it in our official HTML widget?

    Thread Starter Carl Gross

    (@carlgross)

    Thanks for the reply. Here are my follow-ups.

    >> Have you tried using it in our official HTML widget?

    No I have not. I just tried, and it appears that the Elementor ‘HTML’ widget does not suffer from this issue. I should be able to use that to resolve my issue. But why does the WordPress ‘Custom HTML’ widget suffer from this issue? Are you able to replicate that issue on your end?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘element is missing when I open the page.’ is closed to new replies.