Skip to main content
Style Editor

Bit Forms CSS Class Names Explained

Estimated reading: 7 minutes 7 views

Summary: Add Bit Form custom CSS the right way: learn why atomic classes help, target stable class names, add your own classes and use the free Custom CSS/JS editor.

Bit Form custom CSS lets you style a form beyond what the visual style editor offers, such as an animation, a layout tweak or a rule your WordPress theme needs. This doc explains why Bit Form’s class names look unusual, which class names are safe to target, how to add your own classes, and where to write your CSS.

Availability: Targeting Bit Form’s stable class names and writing CSS in the form’s Custom CSS/JS editor work in Bit Form (free) and Pro. Adding your own custom classes to fields requires Bit Form Pro.

Try the style editor first. Colors, fonts, borders, spacing, hover and focus states can all be set without code in Theme Customization, Global Elements and Individual Elements. Use CSS only for what those settings cannot do.

What atomic CSS classes are

If you inspect a Bit Form field in your browser, you see a long list of short classes such as bC10 bJ10 bK10 bu10. These are atomic CSS classes: Bit Form generates one tiny class per style rule and reuses it on every element that needs that rule. The benefits are listed below.

Benefits of atomic CSS classes

A traditional stylesheet repeats the same rules for every element (for example, border-width: 1px written once for each input). Atomic CSS writes each rule once and reuses its class. For your site, that means:

  • Smaller style files: each style rule exists once, so the form’s stylesheet stays small even when the form has many fields.
  • Faster page loads: less CSS for the browser to download and process, which helps page speed and Core Web Vitals scores.
  • Styles scoped to one form: every generated class ends with the form ID (such as bC10), so two forms on the same page never change each other’s design.
  • Fewer conflicts: short, prefixed class names are unlikely to clash with class names from your WordPress theme or other plugins.
  • Consistent design: the same style value always uses the same class, so identical elements look identical.

Why you should not target generated classes

Do not write CSS for these generated classes:

  • They change. Bit Form regenerates them when you edit the form’s styles or update the plugin, and your CSS silently stops working.
  • They are shared. One class can be used by many unrelated elements, so a rule for it can change parts of the form you did not intend.
  • They are unreadable. A rule for bAi10 is hard to understand and maintain later.

The first letter of these classes comes from the Atomic Class Prefix setting (default b) in Theme Quick Tweaks → Others. Change it only to avoid a naming conflict with another plugin.

Stable class names you can target

At the end of each element’s class list, Bit Form adds stable, readable classes that do not change. Every element has four levels, from most specific to most general. Example for the input of the Project Details field (Field Key b10-3) in form 10:

ClassTargetsUse it to
.b10-3-fldThe input of this one fieldStyle a single field.
.b10-fldAll inputs in form 10Style one form without affecting other forms on the page.
.bf-fldAll inputs in all Bit Form formsApply a site-wide rule.
.bf-fieldSame as .bf-fld, readable nameWrite site-wide rules that are easy to read.

The first part of a field’s class is its Field Key, shown at the top of the field’s Field Settings and next to the field in Individual Elements. The number after b is the form ID.

Class names for common elements

ElementField-specificAll fields in the formAll formsReadable name
Form–._frm-b10–.bf-form
Field container.b10-3-fld-wrp.b10-fld-wrp.bf-fld-wrp.bf-field-wrapper
Label.b10-3-lbl.b10-lbl.bf-lbl.bf-label
Subtitle.b10-3-sub-titl.b10-sub-titl.bf-sub-titl.bf-subtitle
Input.b10-3-fld.b10-fld.bf-fld.bf-field
Helper text.b10-3-hlp-txt.b10-hlp-txt.bf-hlp-txt.bf-helper-text-container
Button.b10-1-btn.b10-btn.bf-btn.bf-button

Find the class name of any element

  1. Open the page with the form on your site.
  2. Right-click the element and choose Inspect.
  3. In the element’s class attribute, skip the short generated classes and use the readable classes at the end.

Add your own CSS class to a field

Your own class names are the most reliable target: you choose them, and Bit Form never changes them. In the form builder, open the Style tab, select the field’s element under Individual Elements, open Custom Classes and type the class in Custom Class Names (Pro). Full steps: Individual Elements.

Where to add your CSS

Option 1: the form’s Custom CSS/JS editor

CSS saved here loads with this form only, so you do not need to edit your theme. The editor is available in Bit Form (free) and Pro.

  1. Open the form and click the Settings tab at the top of the builder (1).
  2. In the left menu, click Custom CSS/JS (2).
  3. Click the CSS tab (3) above the editor.
  4. Write your CSS. Do not use single-line // comments; use /* ... */.
  5. Click Save (4).
Bit form custom css editor on the form settings tab under custom css/js with the css tab and save button

Editor Mode turns code highlighting on or off, Word Wrap wraps long lines, and the theme menu switches the editor between Light Theme and Dark Theme. The JavaScript tab holds custom scripts for the same form. The page links to a YouTube tutorial and this Documentation.

Shortcut: while designing in the form builder, the gear icon (Builder Settings) in the builder toolbar opens the same editor on its Custom Code tab.

Option 2: your WordPress theme

Add the CSS in Appearance → Customize → Additional CSS, in the Site Editor’s custom CSS, or in a child theme stylesheet. Use this for rules that should apply to every form on the site.

CSS examples

Soften one text box that has the custom class inquiry-details:

.inquiry-details {
  border-radius: 12px;
  background-color: #f8fafc;
}

Make all labels in form 10 uppercase, without affecting other forms on the page:

.b10-lbl {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

Add a hover lift to every Bit Form button on the site:

.bf-button {
  transition: transform 0.15s ease;
}
.bf-button:hover {
  transform: translateY(-1px);
}

When your CSS does not apply

  • Bit Form’s own styles win: make your selector more specific, for example ._frm-b10 .inquiry-details, or add !important to your property.
  • “Add !important rule to all styles” is on: Bit Form’s styles then use !important, so your rule needs !important too.
  • A cache or optimization plugin serves old CSS: clear its cache after saving.
  • The class is wrong: check it in the browser’s Inspect panel. Field-specific classes contain the Field Key, which changes if you duplicate the form.

Frequently asked questions

Why are Bit Form class names so long and random?

They are generated atomic CSS classes that keep the stylesheet small. Target the readable classes at the end of the list, such as bf-field, or your own custom classes.

Where do I add custom CSS for a Bit Form form?

Open the form, click the Settings tab, then Custom CSS/JS, and write your CSS on the CSS tab. For rules that apply to every form, use Appearance → Customize → Additional CSS.

How do I style one form without changing my other forms?

Use form-level classes that include the form ID, such as .b10-fld, or scope your rule with the form class ._frm-b10.

Related documentation

Share this Doc

Bit Forms CSS Class Names Explained

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel