Niels van Eck

← Projects

2026 · WordPress · live

Leghorns.nl

A small custom WordPress theme and plugin for a Dutch site about the Leghorn chicken breed.

Leghorns.nl is a Dutch site about the Leghorn chicken breed: its colour varieties, shows, and a page where breeders can offer and ask for birds.

The site started on a stock block theme, with styling pasted into individual pages. I replaced that with a lightweight custom theme and a small companion plugin, so the site is easy to maintain and new content can be added without touching HTML.

What was interesting to solve

  • Content as data, not as page HTML. The plugin registers three content types: colour varieties (one post per variety with a photo, replacing a hand-built page), shows, and offers. Offers get their own fields for type, variety, price and status, and appear on the "wanted and for sale" page through a shortcode.
  • One card component everywhere. Archives and the home page use the same tile markup, so everything reads as one consistent set of pages. The visual language is shared with the dwarf goat federation site, using the same CSS custom properties.
  • Small on purpose. The whole theme and plugin come to around 540 lines of PHP and 18 lines of JavaScript, which only opens the mobile menu and submenus on touch screens.

Stack

WordPress, PHP, CSS custom properties, a few lines of vanilla JavaScript.