A collection of (mostly) WordPress-related snippets and references I’ve found useful and worth keeping where I can find them. Feel free to use what you like, and point me to some better snippets or references.
Animate as Item Enters Viewport»
Nice piece of work from Chris Coyier.
Animation, CSS3, Javascript, jQuery | Type: Javascript
Animate on Scroll Library (AOS)»
Animates block items as you scroll and they enter the viewport.
Animation, CSS3, Javascript | Type: Javascript
Audio Embed»
See result on nmctr.org
Media | Type: Other
Basic WP-query»
As basic as it gets, for clarity's sake.
WP Query | Type: PHP
Category Filters for Custom Post Type»
Read the entire thread.
Filter | Type: PHP
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
Change WordPress Sender Email»
Less system-generated email will end up in spam folders if it's a legitimate email address.
WP/CP | Type: PHP
Child Theme Style Header»
Header info for child theme style sheet.
Child Theme, CSS, WP/CP | Type: CSS
Clear Input Field on Focus»
Not sure why you wouldn't use a placeholder instead.
Forms | Type: Javascript
Clearfix»
Maybe the most widely used clear after float.
CSS | Type: CSS