Follow

'Member when I said I didn't immediately grasp Landing Kit for WordPress's use?

So, turns out there's a free plugin that basically does just that, minus the page template goodies, I guess. Also, it's kind of poorly written. So I dumbed it down even more, cleaned things up, a lot—actually rewrote the whole thing from scratch. Wanted to now add on-the-fly theme switching, but ... multisite makes so much more sense if you're going to go the full custom landing page route.

Show thread

Now, why stick to just one theme then, and only have custom domains pointing to single pages within essentially the same layout? Because for writers or publishers or recording artists that probably still makes sense. Marketing agencies? Not so much, me thinks.

Show thread

Multidomain mapping, or so, it's called, and it uses a bit of a trick, in that it overrides `$_SERVER['REQUEST_URI']` based on `$_SERVER['HTTP_HOST']`. It stores the "map" in the options table, too, and not in posts' custom fields and such. (Landing Kit, I'm guessing, does things differently.) This simplicity is so cool.

Show thread

Looks half-decent on mobile, too. And the "Add" and "Remove" buttons disappear when JavaScript's disabled (but everything else just works, as it should). Progressive enhancement, kind of. (They're still baked into the source rather than added through JavaScript itself, just given a `display: none` on `body.no-js`, but still.)

Show thread

(Why do I even care? Even know this? I'm a mechanical engineer, dammit.)

Show thread

(How 'bout I sold this for €49/year rather than hand it out for free? Ha!)

Show thread
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!