About Melissa Freeman

Melissa Freeman is a freelance WordPress developer in the Lower Blue Mountains, west of Sydney.

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 |2017-03-25T12:10:08+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 |2017-03-25T12:10:24+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 |2017-01-12T21:44:39+10:00January 12th, 2017|Maps, Sheets|0 Comments

WordPress :: Customise BACS display for WooCommerce on Thankyou Page and emails

The default BACS display for WooCommerce wasn't working for me, based in Australia where the end user expects to see Bank name: ING BSB: 923-100 Account name: Melissa Freeman Account number: 12345678 I discovered that to change/customise how your BACS settings are displayed requires you to create a plugin. I'm indebted to the user on StackOverflow who had [...]

By |2018-03-22T05:21:21+10:00August 22nd, 2016|WordPress|33 Comments

WordPress :: adding drop-shadow to the Bootstrap nav-menu

Sometimes, I come across free coding tools that are brilliant. CSSMatic has a box-shadow tool that lets you play with different CSS settings to find the perfect drop-shadow, then spits out the CSS for you. Fiddling with these settings, I came up with this for my navbar-fixed-top drop shadow. .navbar-fixed-top { -webkit-box-shadow: 0px 0px 10px 5px [...]

By |2017-03-25T12:11:22+10:00October 10th, 2014|WordPress|0 Comments

WordPress :: Bootstrap + WordPress settings API

Lately I've been getting my hands dirty with Bootstrap, in particular with a Bootstrap starter framework at Bootswatch. The number of built-in elements is impressive. No wonder the WordPress themes I've used recently have proudly declared "built on Bootstrap". Bootstrap used as it's meant to be used is elegant and beautiful responsive coding. It wasn't the [...]

By |2017-03-25T12:11:35+10:00October 10th, 2014|WordPress|0 Comments

Magento :: Images showing on frontend but not backend

In a Magento project, I bulk deleted all images to start again. I thought I accomplished this by deleting all images from /media/catalog/product, and all records from tables catalog_product_entity_media_gallery and catalog_product_entity_media_gallery_value. However there was one step I missed, and that led to phantom images that appeared on the frontend (in the category view and product view), while [...]

By |2017-03-25T12:12:03+10:00July 6th, 2014|Magento|0 Comments