Adding HTML
-
Good day
WordPress will delete code that I insert into one of my pages. is this normal?
The blog I need help with is: (visible only to logged in users)
-
Hi @donjunep, it depends on the HTML you’re adding:
We don’t allow scripts, iframes, and forms on any plans except our Business plan, as those can sometimes pose security risks. But if you’ll let us know what you’re trying to add, we’ll see if we can help.
-
-
-
I have the code, but can’t post it in the forum as it gets deleted. How shall I get it to you for review?
-
If you need to add code, please wrap your code by using the code button above the text box or using the CODE tag
<code>like this</code> -
For what site is this? http://www.donaldgporterjr.com is not hosted with us, and no site loads if I try to go to that domain.
It sounds like you’re trying to post source code on your site, so others can see the actual code, correct?
To do that on WordPress.com, you have to use the code-shortcode, or the code block if you’re using the block editor:
https://en.support.wordpress.com/code/posting-source-code/
You use that to add code directly in the visual view of the editor, and the code itself will be displayed instead of executed.
But if you try to add code to the HTML view of the editor, and it’s code that’s not allowed on WordPress.com for security reasons, the editor will automatically strip it out. Likewise code posted here in the forums are also automatically stripped out unless you wrap it in backticks or code tags.
- The topic ‘Adding HTML’ is closed to new replies.