About Melissa Freeman

Melissa Freeman is an Australian freelance WordPress developer in the Blue Mountains, west of Sydney, NSW. If you see something in a post that you can't manage yourself, contact me for a free quote.

Installing Behat 3 / Mink / Selenium for Browser Testing – Windows – Part 2

Did you miss Part 1? Behat is a tool you can use to automate testing of your website with behaviour driven tests. Sample FeatureContext.php The FeatureContext.php is the file holding your custom test commands. In your file structure, it is at D:\Behat\features\bootstrap\FeatureContext.php. This is what mine looks like. Including in full because this was one [...]

By |2017-05-02T16:08:41+10:00May 2nd, 2017|Developer Tools|6 Comments

Installing Behat 3 / Mink / Selenium for Browser Testing – Windows – Part 1

Introduction This post stands on the shoulders of this helpful post by Gnaritas which got me almost all of the way there. I found the opposite to Gnaritas in terms of which browser driver worked. I found the Chrome browser driver kept crashing and the Firefox (Gecko) driver worked fine. Behat is a PHP “behavior-driven development” [...]

By |2017-05-02T16:02:57+10:00May 2nd, 2017|Developer Tools|0 Comments

z-index being set to 1 by grunt cssnano postcss process

Using grunt to compile sass, concatenate and minify, I discovered z-index entries were being set to 1. This is a known issue with cssnano. See https://github.com/ben-eb/gulp-cssnano/issues/10 and https://github.com/ben-eb/gulp-cssnano/issues/14. In the readme for cssnano, it says: Note that cssnano enables aggressive optimisations by default, which might not always be what you want. Set `options.safe` to `true` if [...]

By |2017-05-02T12:33:29+10:00March 25th, 2017|JavaScript|0 Comments

JavaScript – tracking a button click or download event with Google Analytics and Avada

Under normal circumstances, you can code your link so that it includes an onclick Javascript event that can fire a Google Analytics function. WordPress page builder plugins tend not to play nicely with this in my experience. I've found a way around it that works for me. I wanted to track how many times my Direct [...]

By |2019-12-17T06:24:11+10:00March 20th, 2017|JavaScript, WordPress|5 Comments

JavaScript – set checkboxes in groups to select “all” or remove “all” for use with filters

For use with multiple sets of Isotope filters. Select "all" by default, but if a filter is selected then remove the checkbox selection from all. If no filters are selected, choose "all" for the particular data-group. There is a dependency on the jQuery version. New versions of jQuery use prop to set the checkbox to [...]

By |2019-12-17T06:24:22+10:00January 12th, 2017|JavaScript|0 Comments

Maps API – Script for getting map coordinates from street address in a Google Sheet

This script is to get latitude/longitude coordinates from street addresses listed in a table in a Google Sheet. I found it a bit challenging to cobble together this script from various others, in particular navigating the results object. See how it goes for you. Paste it into the Google Sheets script editor. Before you use [...]

By |2019-12-17T06:24:35+10:00January 12th, 2017|Maps, Sheets|0 Comments