Menu

Snippets

Yet another programmer blogging about code

Posts Tagged ‘wordpress’

Gravity Forms and WooCommerce country codes

Friday, June 1st, 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. (more…)

Select PayPal landing page for Easy Digital Downloads

Monday, February 19th, 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. (more…)

Localising a Gravity Forms add-on

Thursday, January 25th, 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:
(more…)

Configure WP Super Cache

Tuesday, January 2nd, 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. (more…)

Payment receipts with Gravity Forms and eWAY

Tuesday, November 14th, 2017

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

Gravity Forms add-ons need to have capabilities

Sunday, January 1st, 2017

TIL that you need to give Gravity Forms add-ons some capabilities, otherwise they might disappear from the WordPress admin. (more…)

Customise WooCommerce out of stock message

Friday, December 23rd, 2016

Sometimes the WooCommerce out of stock message isn’t quite appropriate. Here’s a couple of ways to change that message. (more…)

Searching custom meta on custom post types

Saturday, November 26th, 2016

Ever needed to search for a post by something other than the title or post content? If you’ve built a website with custom post types that have additional fields, it’s a good chance that admins will need to search on your custom meta. (more…)

Load Gravity Forms stylesheets in page head

Friday, August 21st, 2015

Gravity Forms normally loads its stylesheets in the page head, where they belong. It does that only on pages which have forms, which is nice. If you use a widget to host your form, however, it can’t detect that until it renders the widget… too late to load the stylesheets in the head. At that point, it just pulls them directly into the page body. (more…)

Disable scroll wheel on Events Manager location maps

Saturday, August 15th, 2015

Events Manager is a really nice, easy to customise plugin for showing events on WordPress websites. One gripe I always have with it is that the location maps zoom when you use the mouse scroll wheel, something I always turn off when I add a map to a page. Here’s how to fix it. (more…)