The following are a series of tools and themes I've created. To see some of my older work, check out my deprecated code page.
Use this code to add a class to the last post in a WordPress loop.
Simplify WordPress gallery code with a minimalistic unordered list implementation, requiring custom CSS for styling.
Convert entire folders of images to webp with specific file size limits using this simple bash script.
Discover a straightforward bash script method to conduct a string replacement in your entire SQL database. This technique allows for a direct and efficient approach without the necessity of dumping or reimporting your database.
An example of the simplest WordPress theme possible. This theme is ideal as a development platform for creating static websites.
Hellish Simplicity is a clean simple design. Responsive design makes the theme look good on all devices and the header text can be easily modified.
Sometimes you want to disable the WordPress block editor CSS. This code neatly strips it from your site.
Demos of earlier versions of WordPress. Most of the links still work, so you can still navigate your way around 🙂
To encourage WordPress plugin users to review my plugins, I now use this code adapted from Rhys Wynne to prompt them to provide reviews on WordPress.org.
Code which allows you to redirect an entire WordPress website to another URL whilst keeping the file structure in tact.
This is my new go to snippet for admin settings pages in WordPress. Feel free to copy and paste it into your own projects.
I use this snippet to build new custom meta boxes. Feel free to copy, paste and modify to suit your needs.
There are lots of “recommended” ways to do CDN’s in WordPress. Personally, I prefer to keep it simple and simply buffer the output and rewrite the URL’s.
I like to see how fast pages are loading and how many queries are being executed per page. For that, I use the following bit of code.
CSS code generator for creating your very own dropdown menus. No coding skill necessary!
Ever been infuriated by accidentally doing something silly to your production environment after messing with your hosts file? This plugin can help alleviate that problem.
Adds a simple statement to the top of the admin panel, alerting the contributors to your site that any edits they make will be lost due to the site undergoing a move to another server.