Thanks. In the end I worked out how to do it with a custom field and then added a function to add the class where I wanted it.