Web Dev Snippets

A collection of (mostly) WordPress/ClassicPress-related snippets and references I’ve found useful and worth keeping where I can find them. 
NOTE: Some of these snippets are old and may be outdated. Feel free to use what you like, and point me to better snippets or references.

Change background and color of Chrome autofill

.top .search-form input:-webkit-autofill, .top .search-form input:-webkit-autofill:hover, .top .search-form input:-webkit-autofill:focus, .top .search-form input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 100px #222 inset !important; -webkit-text-fill-color:#fff!important; }
CSS, Forms | Type: CSS

Clearfix

Maybe the most widely used clear after float.
CSS | Type: CSS

Compression – wp-config

Enable compression in wp-config /* Compression */ define( 'COMPRESS_CSS', true ); define( 'COMPRESS_SCRIPTS', true ); define( 'ENFORCE_GZIP', true );
wp-config | Type: PHP

Conflicting Scripts

This constant is enabled by default and means that all JavaScript files are loaded with a single call, rather than multiple calls to multiple files (faster [...]
Troubleshooting | Type: Javascript