When your website means business.

Snippets

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.

Toggle Next Item (FAQ)»

Use mostly on FAQ; does not change toggle text.
CSS3, Javascript, jQuery | Type: Javascript

Turn Start Date into Pretty Date»

Once you've established a date, display it as you like (see catholic fdn single-events.php for complex usage)
ACF, PHP, WP/CP | Type: PHP

Vertical Align»

Vertical align anything with just 3 lines of CSS, do not need to know height of object or container.
CSS3 | Type: CSS

Visually hidden, still available for screen readers»

This is useful for hiding labels while relying on placeholder text for sighted visitors. The alternative (display:none;) hides items from screen readers. clip-path: inset(100%); clip: rect(1px 1px 1px 1px); /*…
CSS | Type: CSS

Menu
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept