Form Style

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

The form uses your theme’s font and fits the space it’s placed in. The Style section of a form sets everything else: the layout, the colors, the width and how it behaves on small screens.

Where: Easy Subscribe → Settings → Forms → (your form) → Style.

Tip: Click Preview at the top of the form while you try these settings. The preview changes right away, before you save. Click Save Changes when you like what you see.

Layout

Layout

How the fields are arranged:

  • Inline: all fields in one row (default): the fields and the button side by side. Good for wide spaces, like the end of a page or a footer.
  • Stacked: one field per row: each field and the button on its own row. Good for sidebars and narrow columns.
  • Combined: names in one row, email below: first and last name side by side, with the email field and the button below. Made for forms that ask for both names.

An inline form moves its fields onto separate rows by itself when it doesn’t have enough room, for example on phones. See Small screens.

Field style

How the fields look:

  • Default and Outlined: a border around each field. They differ in where the field’s name sits.
  • Underlined: just a line under each field. Light and minimal.
  • Filled: a light background behind each field.

The quickest way to choose is to switch between them with the preview open.

Field size

Small, Medium (default) or Large.

Icons in fields

Shows a small person icon in the name fields and an envelope in the email field. Icons help visitors see at a glance what goes where.

Colors

Main color

The button and the border of the field a visitor is typing in. Default: purple (#673ab7). Use your brand color or the color of your other buttons, so the form looks like part of your site.

The button text turns black or white automatically, whichever is easier to read on the main color.

Text color

The color of what visitors type, the field names, the icons and the consent text. Leave it empty to use the default.

Field background

The background color inside the fields. Not available with the Underlined field style, which has no background.

Lighter fields

Makes the fields easier to see on a dark background, such as a dark footer. Check it in the preview with the black background.

Width and alignment

Form width

The widest the form may get, in pixels. 0 (default) means the full width of the space it’s in.

Example: in a wide page section, an inline form with three fields can look stretched. A width of 640 keeps it compact.

Form alignment

Left, Center (default) or Right. Shows only when a form width is set, because a full-width form has nowhere to move.

Button width

The button’s width when it sits on its own row: in the Stacked and Combined layouts, or when an inline form has stacked its fields on a small screen. 0 (default) makes it as wide as the form.

Button alignment

Left, Center (default) or Right, for a button narrower than the form. Shows only when a button width is set.

Small screens

When there isn’t enough room for all fields in one row, the form moves them onto separate rows automatically. This depends on the space the form has, not on the size of the screen. A form in a narrow sidebar stacks its fields even on a large monitor.

Custom stacking width

The form chooses a good moment to stack its fields by itself. Turn this on to choose it yourself.

Stack fields below

The form width, in pixels, at which the fields move onto separate rows. The default depends on the fields you show:

  • name and last name: 795 px;
  • one name field: 565 px;
  • email only: 415 px.

The lowest value is 320. This section doesn’t show when the fields are on separate rows anyway: with the Stacked layout, or with Combined and both name fields.

Custom CSS (older forms only)

Forms that had custom CSS saved before version 2.0 still show a Custom CSS box, and that CSS keeps working. New forms don’t have it.

To move your CSS to your theme, copy it into Appearance → Customize → Additional CSS (or your child theme) using the parts described below, then empty the box and save.

Styling with your own CSS

This part is for developers or anyone comfortable with CSS. You don’t need it to make a good-looking form.

The form is protected from your theme’s styles, so a theme update can’t break it. To style it from your theme or from Additional CSS, target the form’s parts with ::part():

.easy-subscribe .esub-form::part(button) { background: #222; border-radius: 0; }
.easy-subscribe .esub-form::part(button):hover { background: #444; }
.easy-subscribe .esub-form::part(outline) { border-color: #222; }

Available parts: form, field (also field-name, field-last-name, field-email), label, control, outline, input, icon, button, consent, consent-checkbox, consent-text, message (also message-success, message-warning, message-error) and spinner.

To style one form only, use its ID: the form [easy-subscribe id="a3f"] sits in .easy-subscribe-a3f, so .easy-subscribe-a3f .esub-form::part(input) changes only its fields. The text above the form is regular HTML inside .esub-before-form.