Tag: code

WordPress: Minify HTML for Google PageSpeed

One simple thing you can do to improve the loading speed of WordPress pages is to minify the HTML and then implement a system cache. In this tutorial we will teach you a simple way to minify the HTML code. Helper Hook First we have to add a helper hook, this is to affect only the front pages […]

Add an “Update notification” for self-hosted premium themes or plugins

Recently we embarked on the project of creating our own premium theme (Xclusive -Pro) that extends the basic functionality of our image store plugin. One thing that we love about WordPress is how users can easily update themes, and we wanted to offer the same functionally to anyone using our premium theme. There was not a […]

Remove password protected posts from archive pages

In this tutorial we’ll show how to remove password-protected posts from all of the archive pages in WordPress. There is no need to modify the theme, create custom loops or custom queries. We’ll modify the main query created by WordPress using two hooks; then, we’ll show other ways to use the same functions to search posts with a […]