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.
Add classes to GF form fields; these are the most commonly used, but look at the others also.
CSS, Forms | Type: CSS
A variation from the code found at the reference link, to accommodate different numbers of payments for different feeds.
eCommerce, Forms, WP/CP | Type: PHP
When hackers discover your username, they have half the equation for logging in.
Security, Users | Type: PHP
Can be just what you need when it's gotta be centered.
CSS | Type: CSS
Add 'pipe' between horizontal nav items, except last item.
CSS | Type: PHP
First, add HTML5 support to functions.php
CSS3, Search, WP/CP | Type: CSS
Two approaches for adding dashicons in HTML. A Cheerful Headline <h2 class="dashicons-before dashicons-smiley">A Cheerful Headline</h2> Point That Way <h2>Point That Way<span class="dashicons dashicons-arrow-right"></span></h2> Obviously, CSS would need to be added…
WP/CP | Type: PHP
A show-hide that still works(?not tested lately); changes toggle content.
When form displays "extra markup": empty p tags, etc
Forms | Type: PHP