WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 24 of 36

Disable PHP version info & error messages

Whenever possible, prevent access to sensitive information about your server. Here is how to prevent PHP from displaying errors and their sensitive infos.

(More) secure PHP includes

Quick tip for securing your PHP includes, place them above your web-accessible root directory.

Lazy Load Tricks

I use Lazy Load for the sweet animated effects at Plugin Planet. Here are some code snippets for future reference.

Create a WordPress shortcode

Creating your own custom shortcodes is another thing that WordPress makes very easy to do.

Disable iOS Tap Color

Here is a quick CSS snippet to disable the tap color in iOS.

Responsive CSS for Simple Ajax Chat

Thank you to Benjamin S. for sharing this CSS snippet for my free WordPress plugin, Simple Ajax Chat. Simple Ajax Chat (SAC) provides a setting that makes it easy to add your own custom CSS/styles. So today we’re going to take advantage of that option to customize the appearance of the SAC chat box so […]

Affinity Photo: Transparent Gradient

I switched from Photoshop to Affinity Photo several years ago. Although the overall image editing process is very similar to Photoshop, there are some things that Affinity Photo does differently. For example, doing a simple gradient transparency. Seems easy but it took me quite a while to figure out how to do it. So am […]

Display WordPress Theme Screenshot

Most good themes include a screenshot, primarily to be displayed on the Themes screen in the WP Admin Area. Of course, theme screenshots can be displayed anywhere, even on the frontend.

Require HTTP 1.1 (and better) for POST

This quick .htaccess snippet requires that the user submit POST requests using only HTTP 1.1 and better.

WordPress configuration tricks

Some pipin’ hot WordPress configuration tricks for the wp-config.php file. All snippets strictly plug-&-play, no fiddling required. I use most of these on my own sites, so thought I would share ’em here at WP-Mix.

Spamless email links with PHP and jQuery

Couple of quick snippets for you today.. here’s how to display spamless email links on your web pages using either PHP or jQuery.

WordPress Display Version Number

Here is a simple function to display the current version number for WordPress.