Category: Code snippets

WordPress, JavaScript, Code snippets, web development, HTML5, CSS3, design

WordPress: Minify HTML for Google PageSpeed

compress-html

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 […]

Remove password protected posts from archive pages

lock-secure-wp

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 […]

How to set up a cookieless domain

cookieless

In this post we are going to explain how to set up a cookieless domain. In other terms we are going to remove the cookies set by the server/browser on each request for static content. First let’s talk about what is static content. These are files that does not change on every requests, files like […]

How to disable automatic updates in WordPress

wordpress-updates

So, you just updated your site with WordPress 3.7 (or newer), and you noticed that one of the new features is automatic background updates. The feature will updated WordPress core and translations files, but it will also allow you to automatic update themes and plugins. There are also reasons why WordPress auto updates will not work, […]