HTML tags appear to be missing
-
How do I begin? I’ll try this approach.
I create a new page and add a code snippet. Yesterday, the code snippet used had a lot of PHP and HTML and Javascript. The snippet code was run as a unique page outside of WordPress and it worked perfectly.
But when I included the same code in a snippet and ran the page the <script> and <style> tags just disappeared. Not from the code, but from the browser previews.What i did to fix the problem:
I left the snippet i had created alone.
I deleted the wordpress page
I used the EA Duplicator function to duplicate a page that had some snippet code working properly.
I then renamed the page.
I opened the page for edit and changed the code snippet id to the one that was testi and I was trying to use on the newly created page.Note: The design of both pages are in Elementor and only contain a Title and the Text box with the code snippet. So it wasn’t a big deal to duplicate an old working to the new page.
I then saved the page.
Guess what. The code snippet worked perfectly. Actually you could see that it was going to work right on the Elementor edit screen.After that, I could edit the code snippet and page at will with no further problems.
That is until I try and create a NEW page and add a code snippet. Anything might happen and tags will disappear.I see the missing tags in the browser preview and the Elementor page screen. I use the inspect function on the browser and can see the missing tags.
The missing <Script> the browser displays the contents of the <script></script> tags instead.
The browser I was using was Firefox. I haven’t tried this on any other browsers, so they might be different.Obviously I had a new page with a snippet that worked once, or I wouldn’t have had a good page to copy to create new pages that would have snippets.
I haven’t tried just grabbing a page and adding a snippet to see if the problem presents itself. I give that a try and update this post.
Any insight would be greatly appreciated. A Fix would be nice. ??
- The topic ‘HTML tags appear to be missing’ is closed to new replies.