Is your website still describing the business you used to be?Book a free call

Bricks Builder best practices: the native way

Bricks Builder best practices: the native way

You can build a Bricks site that looks perfect and is still a problem.

It looks right on launch day. Then the client opens the builder to change one heading, and nothing they touch behaves the way they expect. The styling lives in a wall of custom CSS, and only the person who wrote it knows where.

Bricks gives you a lot of freedom, and freedom is where the mess starts. These are the Bricks Builder best practices I hold my own builds to, and the builds my team hands me for review.

What does “native” mean?

Native means the site is built with the tools Bricks already gives you, in the place Bricks expects to find them.

A colour is a variable, not a hex code typed forty times. A card style is a global class, not a rule pasted into a code box. A repeated block is a component, not a copy of a copy.

The test is simple. Can someone who did not build the site open the builder and change it without breaking it? If yes, it is native.

The order I reach for things

Order of tools in a native Bricks build
  1. The right native element. Bricks has an accordion, a slider, tabs, a form, a counter. Use the element made for the job. Never fake one element with another plus code.
  2. The element’s own settings. Layout, spacing, typography, borders, hover states and breakpoints are all there in the panel. Most styling never needs to leave it.
  3. Global variables. Every colour, font size, spacing step and radius gets a name. Name them by role, like primary or text-muted, not by value. The day the brand colour changes, you change one line.
  4. Global classes. Shared styling goes into classes named by what the thing is: card, page-head, label. One class, used everywhere that thing appears.
  5. Components. Anything used twice becomes a component, with its text, image and link as properties. Fix it once and every copy follows.
  6. Custom CSS and JavaScript, last. Only for what Bricks cannot do. Keep it small, keep it inside the class or component it belongs to, and leave a one-line comment saying why it exists.

What do people get wrong?

We reach for code first because code is what we know. It feels faster. It is faster, for one afternoon.

The cost comes later. A rule aimed at one element’s ID breaks the moment someone duplicates that block onto another page. An !important added to win a fight starts three more fights.

If you find yourself writing page-specific CSS, stop and ask what Bricks setting you skipped.

How do you know a build is healthy?

I use a small test. Copy a section from one page and paste it onto another.

If it looks identical, the styling travels with the block, which means it lives in classes and components. If it falls apart, the styling is hiding somewhere in page or global code.

A few more signs of a healthy build:

  1. Font sizes and colours come from variables, almost without exception.
  2. Class names tell you what the element is, not what it looks like.
  3. The order of elements in the builder matches the order on screen.
  4. There are no hidden placeholder blocks left behind.

Why does this matter to a client?

A client never sees your class names. They do feel the result.

A native build is cheaper to change, safer to hand to another developer, and easier for their own team to edit. A forced build ties them to whoever wrote it. I would rather a client stay because the work is good, not because nobody else can read it.

Still choosing a builder? Start with how I choose between Bricks and Divi 5. Moving an existing site? Read how to migrate to Bricks without losing SEO.

A checklist for your next Bricks build

  1. Set up variables for colour, type, spacing and radius before the first section.
  2. Set default text, heading and button styles in the theme style.
  3. Create a class the second time you style the same thing.
  4. Create a component the second time you build the same block.
  5. Run the copy-and-paste test before handover.
  6. Read through any custom code and delete what a setting can now do.

Build it so the next person can change it. Most of the time, the next person is you.

What is the one habit that cleaned up your own builds? Tell me in the comments.

Was this helpful?
Work with me
Have a website project in mind?

Tell me what you are building. I will tell you honestly what it would take.

Start a project
Kazi Mamun

Written by Kazi Mamun

I am Kazi Mamun, founder and Head of Design and Development at Team Mavin. I lead teams that design and build fast WordPress websites, and I still build in Divi and Bricks myself.

More about me →

In this article

Free download

First page of the launch review sheet

The launch review sheet

The printable version of my five-pass review: 28 checks, a feedback sorter and a sign-off line.

I will only email you when I publish something useful. No spam.

Share

Comments

Leave a comment

A question, your own experience or a different view are all welcome. I read every comment and approve it by hand, so it may take a day to appear. Links are not needed.