WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 21 of 35

WordPress Comment Anchor Links

Just a head’s up about comment anchor links: they tend to vary a lot from theme to theme, and whether or not there are comments on the post.

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.

PHP: Two Ways to Check if Remote File Exists

Working on my free WordPress plugin, Simple Download Counter, I needed a quick way to check if a remote file exists. As in, requesting the file returns a 200 “OK” response. Here are a couple of ways to do it via PHP.

Must-Use (mu) Plugins & Drop-Ins

Two little interesting tidbits about WordPress: must-use (mu) plugins and drop-ins. Do you know them?

CSS3 & HTML5 Cheatsheets

Two excellent cheatsheets for anyone working with CSS3 and HTML5.

Display a Simple “Tweet This” Link

Twitter changes their API quite a bit, however it is still possible to display a simple “tweet this” link anywhere on your web pages.

Strip Slashes from PHP Magic Quotes

Here are a couple of functions to strip or remove slashes (i.e., backslashes) from variables when PHP magic quotes are enabled on the server.

1Password Dropbox Sync

Here is a simple trick for getting your 1Password data file to sync on any device.

Include external, current version of jQuery

Quick tip for including (linking to) the current version of jQuery from external sources.

Spammer Trap

Another bad-bot trap to keep spammers and other scumbags away from your website.

CSS cross-browser whitespace rules

If you’ve ever tried to make whitespace behave across all browsers, you’ll appreciate today’s snippet.

CSS reveal nofollow links

In this quick post, you’ll see how to use CSS attribute selectors to reveal any nofollow links included in your web pages.