Load Gravity Forms stylesheets in page head

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 than 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. Continue reading Load Gravity Forms stylesheets in page head

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Disable scroll wheel on Events Manager location maps

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. Continue reading Disable scroll wheel on Events Manager location maps

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Hack a WordPress plugin AJAX action

Customising the AJAX output of WordPress plugins can often be a breeze, when the authors oblige other developers by peppering their code with action and filter hooks. But if they don’t, you can always fall back on hacking the plugin’s AJAX action. Continue reading Hack a WordPress plugin AJAX action

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Use Autoptimize effectively

Keeping your WordPress website fast can become pretty tricky once you start installing plugins and off-the-shelf themes. Everything seems to want to load at least one CSS stylesheet, and sometimes a dozen or more JavaScript script files. Some also inject great chunks of CSS and JavaScript into every page. Luckily, there’s the handy Autoptimize plugin to help you sort all of that out. Continue reading Use Autoptimize effectively

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Move Gravity Forms field labels above input fields

Gravity Forms has some nice compound fields to make it easy to accept things like names, addresses, and credit card details. One annoying thing it does, though, is put the labels for the input fields below them instead of above them. Here’s how to move Gravity Forms field labels above input fields where most people would expect them to be. Continue reading Move Gravity Forms field labels above input fields

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Tracking WordPress plugin compatibility with Trello

For a while now, I’ve been using the amazing Trello to help me keep track of various tasks. Sure, I use various bug trackers like Mantis and GitHub Issues too, but for some of the more high-level tasks it’s just easier with Trello. One job it’s particularly good at is helping me keep track of plugin compatibility testing. Continue reading Tracking WordPress plugin compatibility with Trello

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail

Load Gravity Forms scripts for custom field

Gravity Forms is a very easy to use yet flexible tool for building forms in WordPress. It uses quite a bit of JavaScript and custom CSS, so it’s careful to only load its scripts and stylesheets when needed. But if you put a form into a custom field, e.g via Advanced Custom Fields, how will Gravity Forms know it needs to load them? Continue reading Load Gravity Forms scripts for custom field

facebooktwittergoogle_plusredditlinkedinmailfacebooktwittergoogle_plusredditlinkedinmail