• For people using gutenberg and other default global styles, there is no simple way to make forminator forms inherit the button styles. for example, if i turn off forminator styling and use basic option or none, the button shows as plain html button. it will not inherit the global button styles for the site.

    your none option removes the styling but does not remove your classes or allow them to be replaced at the form/plugin level as other plugins do. example: https://www.billerickson.net/wpforms-submit-button-match-gutenberg-button-style/

    please change your plugin to not output css classes for forminator if people set to none and want to inherit all their global styles. other plugins allow users to simply replace the class on an element with the global class name at the plugin level:

    “wp-block-button__link wp-element-button”

    thanks! i love this plugin but this aspect makes it very outdated and not up to FSE block theming standards for 2026 and beyond.

    if anyone else finds this thread, here’s a functions.php solution gemini made that strips the forminator class and replaces with the default global styles:

    /**
    * Replace Forminator submit button classes with Gutenberg global style classes.
    */
    add_filter( 'forminator_render_button_markup', 'inherit_gutenberg_button_classes_in_forminator', 10, 2 );

    function inherit_gutenberg_button_classes_in_forminator( $html, $button ) {
    // 1. Ensure we only target the submit button
    if ( strpos( $html, 'forminator-button-submit' ) !== false ) {

    // 2. Replace Forminator's submit button element wrapper with Gutenberg's button block wrapper
    $html = str_replace( 'forminator-field', 'forminator-field wp-block-button', $html );

    // 3. Replace the native Forminator button classes with Gutenberg block button classes
    $html = str_replace(
    'class="forminator-button forminator-button-submit"',
    'class="wp-block-button__link wp-element-button forminator-button-submit"',
    $html
    );
    }

    return $html;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hello @jhmonroe

    Forminator already has an option to add custom classes to elements of the form. In the case of the submit button, simply edit your form, and then click on the options of the Submit button:

    There you can add the classes “wp-block-button__link wp-element-button”. When you have configured the form to use the Basic Style (under the Appearance section of the form), with these classes, it will follow up the styling configuration you have in your FSE Theme:

    You can add custom CSS classes to pretty much any Forminator field. The classes you need to use depends of the theme/page builder; the ones you provided are for Gutenberg/FSE Themes.

    Can you please try this approach and from there, see if there is anything else that Forminator would need to improve?

    Thread Starter James Monroe

    (@jhmonroe)

    @wpmudevsupport15 thank you! this works perfectly

    that little gear icon is very easy to mis. perhaps make it bigger? i was only looking for css/styling things in the sidebar to customize the form under appearance and settings

    love forminator!

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @jhmonroe,

    Glad to know that helped.

    that little gear icon is very easy to mis. perhaps make it bigger? i was only looking for css/styling things in the sidebar to customize the form under appearance and settings

    Will bring this feedback to the Forminator team’s attention for further review. Thank you for the suggestion.

    We’ll mark this topic as resolved. Please feel free to open a new topic if you need any further assistance. We are here to help.

    Would you mind leaving us a rating, which helps us to keep the free version of the plugin maintained forever?

    https://wordpress.org/support/plugin/forminator/reviews/#new-post

    Best Regards,
    Nebu John

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.