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.

Fix to Top Onscroll»

Positions element at top on scrolling using jQuery scrollTop.
Javascript, jQuery | Type: Javascript

Fixing Fixed Header Problems»

html body { position:static !important; } /*fixes many(!) issues caused by fixed header*/ .anchor::before { display: block; content: " "; margin-top: -75px; height: 75px; visibility: hidden; pointer-events: none; } /*offsets…
CSS | Type: CSS

Flexible Content»

Uses display:flex; to reorganize content on smaller devices.
CSS3 | Type: CSS

Force Private Post»

Have used this for user-created content that is not for public.
Custom Admin, Users, WP/CP | Type: PHP

Gravity Forms Ready Classes»

Add classes to GF form fields; these are the most commonly used, but look at the others also.
CSS, Forms | Type: CSS

Hide Usernames from Hackers»

When hackers discover your username, they have half the equation for logging in.
Security, Users | Type: PHP

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