Skip to content

Microblog

A microblog of sorts. Collects notes and likes.

Was asked to add a social media link …

Was asked to add a social media link to a client’s site and I was pleasantly surprised to see the correct icon added in front automatically. Turns out I once wrote the three lines of JavaScript that made that happen. Turns out I also used slick—I know—to rotate (Jetpack) testimonials on the front page. I mean, a slightly tweaked CPT, a custom shortcode, and the default JS library: that’s all it took. No need for “feature-laden,” 3rd-party plugins.

Finally figured out what was going on with …

Finally figured out what was going on with one of my WordPress plugins. It relies on Composer, you see, and to avoid version conflicts, I’d decided to give “namespace prefixing” a try. (If multiple plugins try to autoload the same class, whichever plugin is included first wins, which could cause issues if another plugin relies on a different version of said class.) With “prefixing,” though, it seems the second, identical but differently name(space)d class will not get loaded at all. (Who knew!?)