Code Snippets — Introduction

Sometimes the simplest solution is a well-placed snippet of code. Here you'll find a growing library of tested, practical code snippets I've used across real web projects.

This post may contain affiliate links (†). If you purchase a product through these links, BlueMoonCreative.Services may earn a small commission at no extra cost to you.
For further information, please read our Terms & Conditions of Use.

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:

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…

Disclaimer: This article was drafted & written by the post author, with AI used as an assistive tool during the process — e.g. to explore ideas, check facts, or suggest phrasing. Final content has been edited, reviewed, & verified by the post author, who holds full editorial responsibility for the content published.
AI Assisted Icon

Look no further than BlueMoonCreative.Services website to see the results of this incredible toolkit in action. Crocoblock integrates seamlessly with our theme & plugins providing all the tools required to, easily & quickly, add dynamic content to our customised pages.
† Affiliate Promotion

Scroll to Top