Skip navigation

Snippets Snippets

  • WebAware
  • Shop
  • Snippets
  • Search

Search

  • Home
  • About
  • Privacy Policy
  • Mastodon
  • GitHub
  • WordPress
  • RSS
  • Contact Us

Yet another programmer blogging about code

A new theme for WebAware

30 August 2021

We now have a new theme, built with Sass, Timber / Twig, minimal pure JS, and accessible HTML.

Tags: timber, twig, wordpress
Posted in Administrivia | No comments

Read more »

Easy Digital Downloads and WebP images

21 January 2021

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.

Tags: easy digital downloads, webp, wordpress
Posted in Snippets | No comments

Read more »

postcss-clean breaks above [email protected]

3 January 2021

If you use postcss-clean to drive clean-css as part of your build process, you need to pin postcss to no later than version 8.1.10 or you'll get "TypeError: node.getIterator is not a function".

Tags: css, javascript
Posted in How-to | No comments

Read more »

Reduce Gravity Forms spam false positives with multipart emails

9 December 2020

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.

Tags: gravity forms, wordpress
Posted in Snippets | No comments

Read more »

Allow editors or contributors to change settings

15 August 2020

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.

Tags: wordpress
Posted in Snippets | No comments

Read more »

Variable fonts with legacy fallback

2 August 2020

Variable fonts support several variations of a typeface from a single file. Support older browsers through progressive enhancement.

Tags: css, fonts, legacy
Posted in Snippets | No comments

Read more »

Proxy subdomains of a remote domain with nginx

2 July 2020

With a few simple rules, nginx can proxy all domains of a remote server.

Tags: nginx, ssl
Posted in Snippets | No comments

Read more »

Photographic PNGs with transparency are better as lossy WebP

21 September 2019

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.

Tags: webp, wordpress
Posted in Snippets | No comments

Read more »

WooCommerce Signups with Gravity Forms

22 April 2019

When customers buy things through your WooCommerce shop, they can sign up to your website right there in the checkout. But if you want to control the signup process, a better option can be Gravity Forms.

Tags: gravity forms, woocommerce
Posted in How-to | No comments

Read more »

Subresource integrity for WordPress scripts and stylesheets

3 December 2018

When we load resources from other websites, we trust those sites to deliver something safe. Use subresource integrity to ensure authenticity.

Tags: css, javascript, wordpress
Posted in How-to | No comments

Read more »

PHP version compatibility test with a few files on 5.2

5 November 2018

Check for PHP version compatibility problems in WordPress plugins, with support for just a few files running in PHP 5.2.

Tags: php, phpcs, wordpress
Posted in How-to | No comments

Read more »

WordPress login link with a popup form

30 August 2018

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.

Tags: gravity forms, login, wordpress
Posted in Snippets | No comments

Read more »

  • <
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • 11
  • >

© 2025 WebAware Pty Ltd | ABN 56 079 079 593

  • Mastodon
  • GitHub
  • WordPress
  • RSS
  • Contact Us