Custom classes settings screenshot

This project is not covered by Drupal’s security advisory policy.

Adds or removes classes from form elements based on the URL or route name or Form ID. For example if a module doesn't define a unique class for a button, you can add one with this module. You don't have to create a form alter hook for it.

You can also remove any classes that are added via other modules. But be aware as this can result in AJAX errors on forms where a certain button is missing a required class. (For example if you remove the success class from the commerce Add to cart button, it could result to LogicException: The database connection is not serializable errors). So form item class removal should be your last resort during styling.

Project information

Releases