A Coder? Not Exactly…
I’ll set expectations early — I’m certainly not a developer and will never claim to be an expert. What I am is someone who has spent years building and managing websites, and who has learned, often through necessity, that a well-placed snippet of code can solve a problem far more efficiently than any plugin. Over time, those snippets have accumulated into something genuinely useful — and that’s what Code Snippets is here to share.
Where These Snippets Come From
Some of the code snippets you’ll find here I’ve written myself, many I’ve adapted from existing solutions, and some I’ve researched, tested and refined until they did exactly what I needed. All of them have been used in real projects — across my own websites and for clients. If it’s here, it’s because it worked.
However, as I referred to in my AI Introduction, I have recently had assistance from my ever so helpful new associate, Claude, which, in the future, will certainly lessen the frustration of trying to correct a snippet that does not work because of an absent or misplaced a semi-colon!
Why Snippets Over Plugins?
It’s a fair question. Plugins are brilliant — I still rely on them — but there are times when a lightweight, targeted code snippet is simply the better option. Fewer dependencies, less bloat, and often a much tidier solution. Knowing when to reach for a snippet instead of installing yet another plugin is one of those skills that quietly makes a big difference over time.
What You’ll Find Here
Feature articles will be added over time with snippets covering a range of common challenges, including:
- WordPress Customisation — tweaks and modifications that go beyond what themes and plugins offer out of the box
- CSS Fixes & Styling — solving layout and design issues with targeted CSS
- PHP Snippets — functional additions and modifications to WordPress behaviour
- JavaScript & jQuery — adding interactivity and enhancing user experience
- HTML Fixes — structural and formatting solutions for common markup challenges
- WooCommerce Snippets— extending and modifying e-commerce functionality
- Performance & Optimisation — code-level improvements to speed and efficiency
Practical, Tested & Ready to Use
Everything in code snippets is shared in the spirit of saving you time and frustration. I’ll always provide context for what a snippet does, where it’s best used, and any caveats worth knowing about. Consider it a growing reference library — dip in whenever you need it, as you just might find one that serves your purpose…
