New

Introducing Flatsome Site Builder.

Read more about Flatsome Site Builder
↑↓ to navigate ↵ to select Esc to close

Switch content with states

States let one section show different content without leaving the page: a monthly and a yearly price, a before and after photo, or FAQ topics. A Section or Row holds the states, a State Switcher block lets visitors pick one, and Display conditions decide which blocks show in each state.

Add states

  1. Select the Section or Row, open Advanced, and choose Add states.
  2. Give each state a Label and an ID. Each ID must be unique.
  3. Choose Switching: Client-side switches instantly without reloading the page. URL-based reads the state from a URL parameter, so a link can open a specific state.
  4. Choose Apply.
The States dialog with Switching and two states, Before and After

Let visitors switch

Insert a State Switcher block inside the Section or Row. It shows a button for each state. It only works inside a block that has states.

Show blocks for a state

  1. Select a block inside the Section or Row and open Advanced.
  2. Under Display conditions, add a condition and pick the state, with is or is not.
  3. Use Add condition for more, and switch between AND and OR. Conditions combine from left to right.
The Builder showing a Before and After switcher on the canvas and an image whose display condition is Before

In the Builder, the canvas shows the blocks for the active state. With URL-based switching, blocks for other states are left out of the page. With client-side switching, they are on the page but hidden until their state is picked.

Classic customers go first. 50% off your first year until November 2.

Sign in Join early access