Thanks to this post I got it to work by using the tag - see code below.
The Wix documentation on this is at best vague to the point of being misleading, or at worst, plain incorrect, and should be updated - judging by the posts on the forum a lot of people have struggled to figure this out.