Skip navigation

Snippets Snippets

  • WebAware
  • Shop
  • Snippets
  • Search
Menu

Search

  • Home
  • About
  • Privacy Policy
  • Twitter
  • GitHub
  • WordPress

Yet another programmer blogging about code

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 »

Enqueue scripts on the WordPress front end and login page

8 August 2018

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.

Tags: wordpress
Posted in Snippets | No comments

Read more »

Gravity Forms and WooCommerce country codes

1 June 2018

Gravity Forms and its User Registration add-on make it really easy to create custom registration pages. One problem you'll hit if you combine that with WooCommerce is that WooCommerce uses standard country codes, but Gravity Forms uses country names. But that can be fixed.

Tags: gravity forms, woocommerce, wordpress
Posted in Snippets | 2 comments

Read more »

Restrict Amazon SES by domain name

9 April 2018

Amazon Simple Email Service (SES) makes it easy, and cheap, to send emails reliably from a website. Here's how to set it up for use with multiple domains.

Tags: amazon ses, email
Posted in Snippets | No comments

Read more »

Select PayPal landing page for Easy Digital Downloads

19 February 2018

Easy Digital Downloads comes with a PayPal Standard payment gateway, which lets us get our store up and selling quickly and cheaply. Let's get it to select a better landing page with PayPal Standard, and make our credit card customers happier.

Tags: easy digital downloads, gravity forms, paypal, wordpress
Posted in Snippets | No comments

Read more »

Localising a Gravity Forms add-on

25 January 2018

The Gravity Forms Add-on Framework makes the job of creating an add-on really easy. But there's a couple of problems with letting it load our text domain for us:

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

Read more »

Configure WP Super Cache

2 January 2018

Page caching is important for the performance of your WordPress website. Here's how to configure WP Super Cache to serve up your site's content from the cache, without bogging down your server.

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

Read more »

Payment receipts with Gravity Forms and eWAY

14 November 2017

Gravity Forms email notifications can be used to send simple payment receipts for eWAY transactions.

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

Read more »

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

© 2022 WebAware Pty Ltd | ABN 56 079 079 593

  • Twitter
  • GitHub
  • WordPress
  • Contact Us