When I try to add HTML code to my widget , is shoes an error that tags should be removed.enter image description hereenter image description here

How to solve my problem

  • That's not HTML. That's a script.
    – Jack Johansson
    Mar 30 '18 at 17:10

Changes were made to the Text Widget in WordPress 4.8. The editing experiencing was enhanced in some ways but this also caused issues with certain HTML tags and formatting.

Fortunately, a new Custom HTML Widget was added in WordPress version 4.8.1. The Custom HTML Widget allows <script> tags, and will not remove certain formatting unlike the new version of the Text Widget:

Custom HTML Widget

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.