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.

Pure CSS triangle»

Creates a triangle shape with nothing but CSS. Note that the border placement and color dictates triangle color and direction of pointer (opposite the visible border).
CSS | Type: CSS

RankMath Functions»

Move RankMath metabox to bottom of the edit screen //change the metabox display location to bottom function rank_math_change_metabox_priority() { return 'low'; } add_filter( 'rank_math/metabox/priority', 'rank_math_change_metabox_priority' ); Remove node from admin…
PHP, WP/CP | Type: PHP

Read More/Less Toggle»

Not as easy to find as I'd have guessed. Initially shows a defined number of characters (appended with ellipses) and a 'read more' link.
jQuery | Type: Javascript

Remove Items from WP/CP Admin Bar»

// Remove items from the admin bar function remove_from_admin_bar($wp_admin_bar) { /* * Placing items in here will only remove them from admin bar * when viewing the fronte end of…
PHP, WP/CP | Type: PHP