CodeNewbie Community 🌱

nhsye
nhsye

Posted on

Issue with HTML Code for NHS Number Site

I created simple HTML code in Notepad with a .html extension for my maternity leave calculator. It works fine as a file, but when I paste it into the WordPress custom block (HTML editor), it doesn’t display or function properly. I think WordPress strips or alters some code. Please guide me on fixing it so my calculator works correctly inside WordPress.

Top comments (3)

Collapse
 
keithwalker profile image
Keithwalker

This issue happens because WordPress often removes or modifies certain HTML or JavaScript for security reasons. To fix it, try using the Custom HTML block or add your code through a code snippet plugin instead of directly pasting it. If your calculator uses scripts, enqueue them properly or hire PHP developers to help integrate it safely into WordPress.

Collapse
 
josiasgaelprglitch profile image
josiasgaelpr-glitch

Descárgamelo por favor

Some comments may only be visible to logged-in visitors. Sign in to view all comments.