Popular Posts
All posts ordered by popularity
Allow access to external IPs during development
When developing sites, an easy way to keep things private is to use .htaccess to restrict access based on IP address.
Proper usage of get_search_query()
This tutorial explains the two ways to properly use WordPress’ template tag, get_search_query(), depending on context. Note that the information provided in this post also applies to the similar tag, the_search_query().
Remove borders & outlines in IE
For the DigWP redesign, I noticed that some linked images were displayed with an unwanted border (or outline) in IE. After the usual CSS techniques failed to work, I experimented a bit and discovered a simple solution.
Set X-UA-Compatible via .htaccess
It’s relatively well known that you can set X-UA-Compatible headers with HTML.. here is how to do it with a bit of .htaccess.
Disable Combined Scripts in the WordPress Admin Area
If you’ve ever tried to debug JavaScript or CSS for pages in the WordPress Admin Area, you know that it’s next to impossible to sort out which files contain which scripts. Why? Because WordPress combines them all at runtime into a single, concatenated script. It’s referred to as concatenation, and it helps to reduce the […]
Download large files via SSH
Here is one way to download huge files (or any size file) from your server to your local machine. All you need is an SSH connection and the scp command.
Limit HTTP Request Size
This .htaccess snippet can be used to restrict the total size of the HTTP request body sent from the client.
Canonical snippets for WordPress
.htaccess enables us to easily clean up 404 errors and other misdirected HTTP traffic for better SEO. Here are some canonical snippets for WordPress and beyond.
Canonical URLs for a single page site
In this tutorial, I share a handful of .htaccess techniques for implementing canonical URLs for single-page websites. Also referred to as “brochure” sites (among other things). These are all plug-&-play code snippets, just add to any .htaccess-capable site and enjoy the SEO benefits of having canonical URLs. I use these snippets on my sites, such […]
WordPress db-error.php drop-in template
One of the more useful WordPress must-use plugins and drop-ins is the db-error.php file, which you can create, customize, and upload to your site’s /wp-content/ directory. Upon doing so, the contents of the file will be displayed whenever the database is unavailable. This post provides a simple template for db-error.php that you can customize and […]
Set Timeout and Redirect with JavaScript
Hello again! This WP-Mix tutorial shows how to set a timeout and redirect to any URL using vanilla JavaScript. It’s one line of code easy peasy.
CSS text-shadow snippets
Here are some of my favorite/most-used CSS text-shadow snippets.