Allow customising classes to be added to the popup template.