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 »

Show WordPress comments by category only

2011/09/18

Recently I needed a widget or plugin which is able to show only the comments from th current category. It seems that this kind of widget is not very common, so I checked the code from several themes I used in the past and also some plugin. The function below should do the trick, place this function into your functions.php file (theme directory) and add the function into your sidebar. Read more »

Script Support

Support requests, questions and discussions

Submit your question

Categories

Posts by finalwebsites.com

Dropbox GetClicky