Safari-compatible SVG with dark mode support
SVG images can support light and dark mode in CSS. But Safari browser has a problem.
SVG images can support light and dark mode in CSS. But Safari browser has a problem.
When building custom blocks for the WordPress editor, sometimes we want to make them only available on specific post types.
Send UpdraftPlus backups to different S3 folders, so that separate lifecycle policies can be applied to them.
The WordPress block editor supports a link picker that we can add to our custom blocks. The best bit is we can restrict its searches to a post type of our choosing.
Easy Digital Downloads is the ideal WordPress eCommerce plugin for sites that distribute non-physical products like software or ebooks. You can run into a problem if your site has WebP optimised versions of your images though. Easily fixed through a filter hook.
Standard Gravity Forms notification emails are HTML emails. They don't have a plain text part, which some spam filters flag as maybe spam. Stop this happening by making them multipart emails.
The WordPress settings API makes it easy to add shared content to a site for administrators to edit. But it would be nice to let other roles edit some settings too.
Variable fonts support several variations of a typeface from a single file. Support older browsers through progressive enhancement.
With a few simple rules, nginx can proxy all domains of a remote server.
WebP image files are typically much smaller than their JPEG and PNG originals, with virtually no loss of fidelity. But a photographic PNG with a transparency can really show how much better WebP can be.
I'm a big fan of the Login with Ajax plugin. It makes it really easy to add a nice popup login form to a website. Here's how to make the most of it, with a little custom code.
If you want to load a script or stylesheet on both the WordPress front end and login page, here's how to register it once and load it in the appropriate places.