Popular Posts
All posts ordered by popularity
Targeting different versions of IE
Honestly I can’t stand Internet Explorer. But people still use it, so here’s a few ways (via jQuery & CSS) to target different versions of IE.
PHP Shorten String by Character Count
Quick copy-n-paste function to truncate or shorten a string of text to a specific number of characters. Useful for things like “next” and “previous” navigation links and so forth.
WordPress oEmbed Tricks
Ahh yeah, here are some sweet little code snippets to customize the default WordPress oEmbed functionality. Techniques include modifying default oEmbed size, markup, as well as enabling oEmbed for Post Excerpts and Custom Fields.
Live comment preview with JavaScript
Here is a simple way to display a live comment preview for any comment or contact form using ordinary JavaScript.
Tip for resizing images
Here is a quick tip for getting clearer images when reducing their size at web resolution 72dpi.
Block BLEXBot via Apache/.htaccess
One of the worst bots I’ve encountered in a long time. BLEXBot likes to hit the same resources periodically and repeatedly. So it requests the same resources again and again, even if they are expressly forbidden via robots.txt or other methods. It’s like BLEXBot has no memory of where it’s been or what it’s doing. […]
.htaccess template for custom directory views
Here is an .htaccess template for displaying a customized directory with file view enabled, such that all files except for those indicated are displayed as a list.
Enable shortcodes in widgets
Quick tip to enable WordPress shortcodes to be executed in widgets (and post content).
Random WordPress Snippets
Just a collection of miscellaneous & random WordPress snippets for your enjoyment.
Video Tutorials: WordPress Plugin Development
After months of hard work, I am stoked to announce the launch of my new video course on WordPress Plugin Development. It covers the entire process of building, securing, and optimizing your own plugins, including 50+ ready-to-go plugin demos and examples.
WordPress Remove Screen Options
Normally the “Screen Options” tab is an awesome little WordPress feature. Located on various screens in the WP Admin Area, the Screen Options tab toggles open any available settings. Like which meta boxes to display, layout columns, editor auto-height, and other options depending on which screen you are viewing. But there may be cases where […]
Moto G Disable Sync
The Moto G Android phone by default syncs everything with your Google account. That’s fine for people who are not concerned about their privacy, but for everyone else here are the steps required to disable auto-sync on Moto G (and similar) phones.