I have a simple text-box popup on my page, and it calls on a php function script which resides in the header.
I am adding code (in text view) to create this very simple popup. It is triggered on the front end via a link click. (I cannot find a plugin that isn’t all about big flashy popups and ads so I found simple html code in W3schools.)
The popup looks like this when you click the link…
see –
https://www.fireflywebs.ca/wp-content/uploads/2024/05/popupView.jpg
(It creates a simple white box with text which hides when you click the box again)
This is an example of the code blow. The bolded popFunction is what gets stripped out. I have several on the page, and the popFunction is stripped from all of them whenever I come back to the page and do an edit anywhere on the page and then re-save. Then function part of the code is stripped, so the popup no longer works of course.
The code example:
popFunction1()”>1534
(The popFunction calls to the php script ID in the header)
It’s similar to this
https://www.w3schools.com/howto/howto_js_popup.asp
The question is how to prevent the code from being stripped out.
Thanks. I hope you can help.
The post Code being stripped appeared first on SiteOrigin.