# Add css class name to next/previous/submit

**URL:** <https://community.gravityforms.com/t/add-css-class-name-to-next-previous-submit/19260>\
**Category:** Get Help\
**Tags:** gform\_next\_button, css-class-name, gform\_submit\_button, gform\_previous\_button, css\
**Created:** [April 22, 2025, 2:21pm UTC](https://community.gravityforms.com/t/add-css-class-name-to-next-previous-submit/19260 "2025-04-22T14:21:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5da84ac592673520](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5da84ac592673520/32/1086_2.png) [@user5da84ac592673520](https://community.gravityforms.com/u/user5da84ac592673520)\
**Post date:** [April 22, 2025, 2:21pm UTC](https://community.gravityforms.com/t/add-css-class-name-to-next-previous-submit/19260/1 "2025-04-22T14:21:05Z")

</div>

Hi,  
is there a way in 2.9 to attache a css class name to  
buttons:

- next
- previous
- submit  
Its easy for form fields. but cannot find it for buttons.

when starting multiple page forms, there are the following fields that can have there own css

- start pagination
- next page  
but that ones are not for the submit/next/back buttons.

I know how to style buttons with custom css, but want to add the theme button css style

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [April 22, 2025, 3:02pm UTC](https://community.gravityforms.com/t/add-css-class-name-to-next-previous-submit/19260/2 "2025-04-22T15:02:31Z")

</div>

You can do this using the [gform\_submit\_button](https://docs.gravityforms.com/gform_submit_button/), [gform\_next\_button](https://docs.gravityforms.com/gform_next_button/), and [gform\_previous\_button](https://docs.gravityforms.com/gform_previous_button/) filters in the theme functions.php file, a custom plugin, or a code snippets plugin. See [this example](https://docs.gravityforms.com/gform_submit_button/#h-5-append-custom-css-classes-to-the-button).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [May 22, 2025, 3:02pm UTC](https://community.gravityforms.com/t/add-css-class-name-to-next-previous-submit/19260/3 "2025-05-22T15:02:47Z")

</div>

Closed on May 22, 2025, 3:02pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
