Articles on: Website

Custom CSS: stable class names you can target

Custom CSS lets you fine-tune how your website looks beyond what the Design tab offers. Write your rules against the names on this page: they stay the same in every template and through template updates, so your CSS keeps working.


Important: Everything else in your website's code (other class names, the order elements are nested in) belongs to the template and can change with any update. CSS written against it is yours to maintain, and CloudBridal support can't fix it.


Where to Add It


  1. Open Website and choose Advanced
  2. Type your rules in Custom CSS (up to 50 KB; the card shows how much you've used)
  3. Save, then publish


Your CSS is drawn after your template's own styles, so a rule wins over the template's when both are equally specific. It needs the Change custom code permission.


  • Previews: custom CSS is off when you preview a different template, because it was written for your current one. Check it after switching
  • Safe mode turns it off on your live site, together with custom code and HTML blocks


Attributes


Name

Where

Values

data-template

The page's <html> element

The template: bloom, salon, atelier, arbor, noir, shore, gallery, pop, or a bespoke theme's name

data-section-type

Each section's wrapper (.cb-section)

The kind of section, such as hero, richText, imageText, gallery, video, quote, callToAction, steps, badges, pricing, services, designers, featuredDresses, testimonials, realBrides, events, appointmentTypes, faq, team, visit, latestPosts, form, newsletter, listing, htmlBlock

data-section

The same wrapper

The same value. Prefer data-section-type

data-tone

A section's own <section>, inside the wrapper

plain, soft or dark: the color band the section sits on


Classes


Class

What it marks

cb-announcement

The announcement bar above the header, when you show one

cb-header

The site header

cb-nav

The main menu in the header

cb-footer

The site footer

cb-main

The page's main content

cb-section

Each section's wrapper, one per section, in page order

cb-container

A centered column: the inside of a section, the header and the footer

cb-heading

A heading: section and item titles, and a page's title

cb-button

A button-styled link, such as a call to action or the header's booking button

cb-card

A bordered panel: a card without a photo, or a box of details

cb-html-block

An HTML block's holder; its frame sits inside it


Examples


A thinner header on one template only:


[data-template='salon'] .cb-header .cb-container {
min-height: 3.5rem;
}


More room above every testimonials section:


.cb-section[data-section-type='testimonials'] {
margin-top: 2rem;
}


Square buttons everywhere:


.cb-button {
border-radius: 0;
}


Tip: Change colors and corners on the Design tab, under Colors and fonts › More colors and corners, rather than with CSS. A color set there reaches every part of the template that uses it, and CloudBridal checks that text on it stays easy to read. Corners squares or rounds buttons, photos and fields together.



Updated on: 23/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!