Discussions about PHP, jQuery, SEO & general web development

Remove HTML comments in WordPress

2011/09/21

If you check the HTML source from your WordPress website, you will notice a lot of HTML comments. These comments are not visible for visitor and can help the WordPress theme developer while working on his HTML code. Some of you would say: “debugging information shouldn’t be visible to the client”.
There are also plugin developers which place this kind of comments into the code to “mark” their work.

The following WordPress actions are able to filter your code from all HTML comments. Place the PHP code into your functions.php file inside the WordPress theme directory. Read more »

Script Support

Support requests, questions and discussions

Submit your question

Categories

Posts by finalwebsites.com

Dropbox GetClicky