Blog
Sharing my thoughts...
Notes and snippets from real projects: WordPress, WooCommerce, CSS and Next.js.
How to Show the 'Amount Left for Free Shipping' in WooCommerce
A short PHP snippet that tells customers on the cart page how much more they need to spend to get free shipping.
Centering in CSS: The Eternal Struggle (and the Trick That Saved Me)
The left: 50% + translateX(-50%) trick, why it works, and when you should just use flexbox or grid instead.
How to Automatically Add a Table of Contents (TOC) to Single Blog Posts in WordPress
Generate a table of contents from your H2 headings in WordPress with a single the_content filter. No plugin, plus smooth scrolling and some basic styling.
How to Remove 'Billing' from WooCommerce Checkout Error Messages
WooCommerce prefixes checkout errors with 'Billing', e.g. 'Billing First Name is a required field'. Here's a small filter that strips it out.