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