You are currently viewing AMP – How to Fix Prohibited or Invalid Use of HTML Tag Error Due to WordPress Emoji Style

AMP – How to Fix Prohibited or Invalid Use of HTML Tag Error Due to WordPress Emoji Style

  • Post author:
  • Post category:AMP
  • Post comments:2 Comments

Since the release of WordPress 4.2, the Emoji style code was embedded into the WordPress sites. Emojis or smileys allow users to express their feelings using icons. If you are using the official AMP plugin for WordPress by Automatic, the WordPress emoji style code will generate AMP site validation errors as the code is not compatible with AMP. You will see an error message like the one shown below:

prohibited-use-of-html-tag

Once the error is clicked on, the impacted code is displayed on the right side and it’s no other than the Emoji or wp-smiley CSS code embedded into WordPress. A snapshot of the code is shown below:

wp-emoji-css-error-amp

There are many sites which provide a plugin free alternative to removing this code from the posts, however, I was unsuccessful in removing the Emoji code using those methods. The quickest and the easiest method which worked for me was to use the plugin called Disable Emojis by Ryan Hellyer. After downloading and activating this plugin, the error disappeared and the site became AMP validated.

This Post Has 2 Comments

  1. Akash Aher

    Very nice, this is what I am looking for for a long time.
    thank for helping me to remove my Invalid Use of HTML Tag Error in search console…
    Cheers…

    1. David

      Happy to hear that you were able to solve the problem. Best of luck.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.