WordPress HTML block check
Find why code in a Custom HTML block does nothing, or disappears.
Check my block- Button won’t stay on screen
- V.I.B.E marks the problem line
- Button stays put
Checks
- No common kinds of private key found
- Google keys checked
- No chat formatting pasted in
- Code is wrapped in the tags it needs
- The code is the right kind for the platform
- Common tags are closed
- Files load over a secure address
- Straight quotes in the code
- Scripts wait for the page
- No leftover placeholders
- No set widths too wide for a phone
- jQuery is there if the code needs it
A question that will not open
A made-up answer button uses $ to find itself. WordPress documentation says jQuery runs in noConflict mode there, so the short $ cannot be used on its own. Ask for plain JavaScript, as the corrected copy does, or use the full name jQuery.
- Your code uses $ where WordPress expects jQueryLine 4
Ask your AI to wrap the code the WordPress way, using the name jQuery, or to use plain JavaScript.
Checked again after the fix: none of these results come back.
PHP pasted into a page
An AI answered a request for a footer line with PHP. PHP runs on the server before the page is sent, so a page block cannot run it. If a fixed line of text is all you need, plain HTML does the job.
- This is PHP code, not page codeLine 1
Ask your AI for HTML, CSS and JavaScript. PHP belongs in a child theme or a code snippets plugin, after a backup.
Checked again after the fix: none of these results come back.
Why did your script vanish after saving?
WordPress says that for users without a permission called unfiltered_html, tags such as script and iframe are stripped from the block when the post is saved or updated. Administrators and Editors have that permission on a single site. On a Multisite network only Super Admins do. Check who is signed in before you rewrite any code.
Where are the CSS and JavaScript panels?
From WordPress 7.0 the block has separate panels for HTML, CSS and JavaScript, and the last two appear only for users holding that same permission. To check your code here, paste it as one piece with its style and script tags around each part.
Where should PHP go instead?
Put it in a child theme or a code snippets plugin, never in a content block. Back up the site first, add one piece at a time and know how you will switch it off if the site stops loading.
Is a key safe inside a block?
No. Whatever the block sends to the page can be read by anyone who views it, so a secret key does not belong there. Switch an exposed key off at the service that issued it, make a new one and keep it on a server. Known kinds of private key are reported with their line, and the value is removed from the prompt you copy.
What does the block check leave out?
Your plugins, theme and WordPress version are not read, so nothing here can tell whether another script already uses the same names. The paste is read and never executed.
Test as a signed-out visitor
Save the page, open it in a private window and press what you added. You then see what a stranger sees, not your signed-in view. Finish by running the free website check on that address.
Sources, read 30 November 2026
- WordPress: Custom HTML blockupdated 15 June 2026
- WordPress: roles and capabilitieschanged 2 September 2026
- WordPress handbook: jQuery noConflictchanged 21 October 2014
V.I.B.E is made by TNAADO. It is not part of, or endorsed by, WordPress or the WordPress Foundation.
Advanced app builds
TNAADO builds multiplatform products that take payments and protect sensitive data.
Start a project