How To Transition From Block To Flex In Divi 5

by | Dec 19, 2025 | Etcetera | 0 comments

For years, Divi customers trusted a block-based structure device that labored smartly on the time, however as WordPress web page developers have developed, barriers have emerged. Columns stacked predictably in rows, cellular reordering required replica sections or customized CSS, and attaining easiest vertical centering felt like a combat.

Divi 5 modified the entirety by way of making Flexbox the default structure engine. With the new unencumber of Divi 5 Public Beta, this new device is now not experimental. It’s strong and in a position for real-world tasks.

On this submit, we’ll information you thru changing a Divi starter website online to Flexbox in Divi 5. You’ll be informed precisely the place to click on and what settings to modify with out writing a unmarried line of CSS.

Let’s get began.

Working out Block-Primarily based vs Flexbox Layouts In Divi

In Divi 4, each and every structure is constructed on a standard block fashion powered by way of floats and inline-block components. You drop a Row and position Modules within the Columns. The whole lot stacks vertically by way of default, and horizontal preparations are enforced by way of floating the Columns.

The program is predictable and acquainted, but it surely comes with a couple of ache issues:

  • Converting the order of components on cellular normally approach duplicating whole sections and hiding/appearing them according to instrument.
  • Highest centering continuously wishes absolute positioning or CSS tips.
  • Forte sections have been in the beginning created to permit for sections with various row constructions.
  • The extra complicated the design, the heavier the generated CSS turns into.

In case you’ve ever spent an hour tweaking damaging margins simply to make a hero segment glance proper on pills, you’ve felt the restrictions of the block fashion.

The New Manner: Divi 5’s Local Flexbox Engine

Divi 5 replaces the outdated device with genuine CSS Flexbox at its core. Once you turn a Row or Segment to Flex mode, it turns into a Flex container, and each and every Module or Column within it routinely turns into a flex merchandise.

Those controls reside immediately within the Visible Builder underneath Design → Structure and are absolutely responsive. Merely alternate them as soon as according to breakpoint, and also you’re finished.

Divi 5 flexbox settings

Key Flexbox ideas you’ll use each day in Divi 5 come with:

  • Horizontal And Vertical Hole: Used to regulate the spacing between flex pieces horizontally or vertically.
  • Structure Route: Row (horizontal) or Column (vertical).
  • Justify Content material: Controls horizontal distribution (flex-start, heart, space-between, space-around, and space-evenly)
  • Align Pieces: Controls vertical alignment of all pieces.
  • Structure Wrapping: Pieces routinely go with the flow to new strains once they run out of area.
  • Show Order: Exchange how columns stack on cellular gadgets.
See also  30 Style Manufacturers That Entrepreneurs Can Be informed From on Instagram

The Actual Advantages Of Flexbox

Switching to Flexbox in Divi 5 delivers way over only a contemporary set of controls. It essentially transforms the way you construct internet sites with Divi. You’ll create absolutely responsive designs the use of fewer sections and virtually no customized CSS, whilst web page speeds make stronger. Because of a lot leaner, cleaner stylesheets, Divi 5 offers customers a dramatic velocity spice up.

You now not have to copy rows or upload customized CSS to modify the order of columns on cellular gadgets. Layouts develop into more effective, more straightforward to handle, and infinitely extra logical.

Moreover, Flexbox integrates seamlessly with Divi 5’s newest features, together with Nested Rows, CSS Grid, and Loop Builder, offering a contemporary, future-proof basis that makes complicated designs more straightforward than ever ahead of.

Flexbox isn’t simply an improve. It’s the root that makes the entirety else in Divi 5 really feel easy. When you enjoy it, going again to the outdated device feels counterintuitive.

Making ready For The Transition

Sooner than you birth flipping rows to Flex, get your atmosphere in a position. The method is easy, particularly with the Divi 5 Public Beta.

1. Set up the Divi 5 Public Beta

Log in for your Sublime Topics account and move to the Members Area. As soon as logged in, click on Obtain The Divi 5 Beta to obtain the most recent model of Divi 5.

download public beta

Within the WordPress dashboard, move to Look → Topics → Upload Theme → Add Theme, make a selection the Divi zip document, and set up it.

upload theme

As soon as put in, you’ll be brought on to log in for your Sublime Topics account to turn on your license.

2. Set up a Starter Web page

Within the Divi Dashboard underneath Divi Fast Websites, click on the Generate A New Web page button.

generate a new site

At the subsequent display, select Choose A Web page Template.

select a website template

Browse the to be had templates. For this educational, we’ll move with the Accountant Starter Site for Divi. Hover over the thumbnail and make a selection Get started With Accountant.

start with accountant

At the subsequent display, configure the website online main points by way of coming into your website online’s title, including a symbol, and deciding on the pages you’d like to put in. You’ll additionally customise fonts and colours by way of increasing the Customise Fonts & Colours dropdown. As soon as all alternatives are made, click on Generate & Put up My Web page.

generate and publish website

Divi will move during the procedure of constructing a menu and pages. All of the procedure takes as much as two mins.

3. Fast Flexbox Excursion in Divi 5

As soon as your website online is put in, move to Pages → All Pages. Choose the House Web page and click on Edit With Divi.

edit with Divi

When the Visible Builder quite a bit the web page, click on the primary segment to convey up its settings.

section settings

When loading a Structure Pack or putting in a Starter Web page, the layouts are lately routinely set to Block; this may alternate someday, however you’ll manually make the transfer now. To modify this, click on the Design tab and extend the Structure dropdown menu. In Structure Taste, alternate Block to Flex the use of the dropdown menu.

See also  Newbie’s Information to WordPress Electronic mail Advertising Automation

block to flex

As soon as Flex is chosen, you’ll see all the Flex settings to be had to you, together with Horizontal and Vertical Hole, Structure Route, Justify Content material, Align Pieces, and Structure Wrapping.

flex options

That’s it. You’re now absolutely arrange and in a position to tweak the structure to fit your personal tastes. Within the subsequent segment, we’ll stroll you during the steps of changing the web page’s components, one Row at a time.

Step By means of Step Information: Changing Your Starter Web page

Step 1: Audit the Present Block Structure

To your imported House web page, take a couple of mins to scan the construction. Click on into every Segment to transform all block layouts to Flex.

You should definitely determine any Forte sections that you can wish to rebuild the use of Nested Rows.

specialty sections

Step 2: Regulate Spacing And Sizing As Essential

As soon as all Sections had been transformed to Flex, it can be vital to make changes to Horizontal and Vertical Gaps. Get started by way of clicking into the primary Row of the primary Segment within the structure.

select row

Within the Content material tab, extend the Components dropdown menu and make a selection the 1st Column.

select first column

Choose the Design tab, extend the Structure menu, and make a selection Flex because the Structure Taste. Regulate the Vertical Hole to check your desire. By means of default, Divi 5 acknowledges the content material construction and units a suitable Structure Route by way of default.

layout direction

Repeat those steps for every Segment within the structure. You’ll replica and paste types to hurry up the method.

As you’re employed during the web page, center of attention on consistency. As an example, in case your unique block structure used padding or margins to make space between components, Flexbox’s Hole settings can exchange the ones totally.

remove extra spacing

Set a Horizontal Hole for even spacing between columns in a Row, or a Vertical Hole for stacked modules. If Columns seem too vast or slim after the transfer, use the Sizing choices underneath Design → Sizing to set versatile widths.

Use Divi 5’s Attributes characteristic to duplicate and paste attributes between Modules to temporarily make adjustments.

copy attributes

Step 3: Reorder And Align Components Responsively

Now that the fundamentals are in Flex mode, it’s time to leverage Flexbox’s strengths for alignment and ordering. Use Divi 5’s Customizable Responsive Breakpoints to make adjustments on pill and cellular gadgets.

responsive breakpoints

The usage of every breakpoint, navigate thru every Segment to use Construction Templates as vital. As an example, whilst within the Pill Extensive breakpoint, click on the Row within the first Segment of the structure. Within the Content material tab, extend the Components dropdown menu. Click on the Observe Construction Template button.

structure templates

As soon as clicked, you’ll have a number of templates to make a choice from that may routinely transfer a two-column Row to considered one of your opting for.

structure template options

The usage of the single-column template permits for all components within the Row to be transformed to 1 Column, stacking all components vertically down the web page.

single column tablet view

Step 4: High-quality-Track Spacing And Sizing

Pay shut consideration to the structure. There is also eventualities the place sure components don’t show accurately, requiring you so as to add padding on smaller instrument displays. As an example, in this structure, the second Column comprises a background symbol. Whilst it appears to be like nice on desktop, it shrinks on pill and cellular gadgets. Including padding to the second Column permits the background symbol to show as supposed.

See also  8 Best AI Voice Cloning Tools of 2023

column spacing

After restructuring the structure for cellular gadgets, search for sections the place photographs or textual content stack vertically. As an example, this segment appears to be like easiest on desktop, but if biking thru breakpoints, photographs from the first and second Columns stack awkwardly.

On this case, you’ll use Divi 5’s Show Order box to modify how Columns stack on cellular gadgets. Choose the Row that you just want to adjust for cellular. Within the Content material tab, extend the Components menu and make a selection the 1st Column .

select column

Subsequent, extend the Order dropdown menu to expose the Show Order box. Set the Show Order to 1.

set display order

This strikes Column 2 into the primary place at that breakpoint, combating the 2 photographs from stacking awkwardly on smaller displays.

Step 5: Ultimate Preview

When you’ve made the entire adjustments for your structure, it’s a good suggestion to present the overall structure one ultimate glance. Navigate thru every breakpoint, search for spacing problems, and make any ultimate changes as wanted.

In spite of everything, use Divi 5’s Preview characteristic to look how your structure appears to be like at the entrance finish.

Divi 5 preview

That’s it! The usage of Flexbox for Starter Websites and Structure Packs is more straightforward than you suppose. For probably the most section, each and every structure imported into Divi 5 works as anticipated. There is also a couple of cases (akin to Forte sections) the place chances are you’ll wish to rebuild a couple of components, even supposing it isn’t vital. Divi 5 nonetheless helps Divi 4’s block-based basis, so changing the ones sections is totally as much as you.

All of the means of swapping components from Block to Flex takes only a few mins, permitting you to spend your time converting out photographs and textual content as wanted.

Unencumber The Energy Of Flexbox In Divi 5 Lately!

Transitioning to Flexbox in Divi 5 unlocks the theme’s complete doable for fluid, mobile-friendly designs. Not more wrestling with visibility settings or customized CSS. We inspire you to download the Divi 5 Public Beta nowadays, import a Starter Web page or Structure Pack, observe the stairs defined right here, and experiment with this extra fluid device. Flexbox isn’t only a software. It’s a mindset shift towards infinite structure chances in Divi, paving the way in which for quicker builds, higher efficiency, and never-ending creativity.

Tell us your ideas within the remark segment under or hit us up on our Social Media channels. Your comments is amazingly essential, because it allows us to unencumber the most productive imaginable model of Divi 5.

The submit How To Transition From Block To Flex In Divi 5 gave the impression first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!