• Resolved Hugo

    (@etic)


    Hi, great plugin.

    Is it possible to style the submit button?
    With acf_form you can set ‘html_submit_button’, but the filter af/form/args does not consider it.

    Otherwise, could be useful to add class to the submit button.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was about to ask the same in regards to adding a class to the form – which, by extension, would also allow you to customize the submit button.

    Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    It’s currently possible to add classes to the form but not the button. To add classes to the form one can use the af/form/attributes filter. Here’s an example:

    `
    function add_form_class( $atts, $form, $args ) {
    $atts[‘class’] .= ‘ some-class’;
    return $atts;
    }
    add_filter( ‘af/form/attributes’, ‘add_form_class’, 10, 3 );
    `

    Having a similar filter for the submit button would probably be a good idea. I’ll consider adding it to an upcoming release. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can we style the submit button’ is closed to new replies.