Add the custom class to the root element.