• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Remove HTML tags from comments in Genesis Framework

Find out how to remove the HTML tag from comments in Genesis Framework using a simple code snippet.

Some spammers use the HTML tags to detect web pages with open comments in order to leave their links.

So, an additional anti-spam measure you can take is to remove this tag.

And with Genesis, you can do this very easily:

Code snippet to remove HTML tags from comments

Add this snippet at the end of the functions.php file:

To see this and another 847 code snippets of this website, login or subscribe here.

Just like that.

Conclusions

Now you know how to reduce spam on your website or your client’s website: by removing the HTML tags from comments in the Genesis Framework.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

Comments Genesis Framework HTML PHP

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?