SkyPath

The SkyPath is an exciting proposal for a walking/cycling pathway to be added to Auckland’s Harbour Bridge. The Auckland Harbour Bridge Pathway Trust had received some funding and wanted to set up a website to disseminate information about the project. Since some of the same people were involved in my work on the Walk Auckland website, we customised the theme I had developed for that project.

One of the interesting technical aspects was coming up with a way to automagically have images in a page display in a left-hand column, without any special behaviour by the person writing the page (i.e. no shortcodes) and while keeping wp_autop enabled! I added a filter to the_content which used preg_replace to add a class to all paragraphs containing an image, which I could then style appropriately with CSS. (See for example the Business Case page.)