How To Build A Flexbox Footer In Divi 5

by | Jul 12, 2026 | Etcetera | 0 comments

Footers continuously get constructed after the remainder of the web page is completed, and that typically presentations. Columns prevent lining up, spacing feels inconsistent, and the format begins to fall aside once you test it on smaller monitors.

Divi 5 will give you a greater method to construct footer layouts with its Flexbox controls. As an alternative of adjusting alignment with one-off margins and padding, you’ll come to a decision how footer sections stretch, stack, align, and reflow without delay throughout the builder.

On this instructional, we’ll construct a responsive footer with a CTA block, publication signup, navigation hyperlinks, social hyperlinks, and a copyright bar. We’ll use Design Variables for reusable styling and Flexbox for the construction, so the footer remains more straightforward to regulate throughout desktop, pill, and cellular.

Why Construct A Flexbox Footer In Divi 5?

A footer would possibly glance easy, however it typically accommodates a number of other content material sorts: calls to motion, menus, signup bureaucracy, social icons, prison textual content, and from time to time touch main points.

That blend can get messy rapid. One column has extra content material than some other. A sort wishes extra space than the hyperlink checklist beside it. Social icons want to take a seat shut in combination, however the entire team nonetheless must align with the remainder of the footer. In older workflows, the repair continuously concerned stacking handbook margin and padding values till the footer regarded appropriate in a single viewport. You then checked pill or cellular, and the format wanted some other spherical of changes.

Divi 5’s Flexbox layout system handles the ones relationships on the container stage. As an alternative of treating each and every module as an remoted object, you keep an eye on how pieces behave inside of Sections, Rows, Columns, and Module Teams. 3 Flexbox controls do lots of the paintings on this footer:

  • Align Pieces: Controls how flex pieces align around the move axis. On this construct, Stretch is helping columns fill the to be had peak so the 2 aspects of the footer keep visually balanced.
  • Hole: Controls the spacing between flex pieces with out depending on separate margin values on every module.
  • Format Route: Controls whether or not pieces glide horizontally in a row or vertically in a column.

This footer additionally follows the similar system-first manner we use throughout Divi 5 builds. Design Variables outline repeated values, reminiscent of colours, spacing, and fluid font sizes. Flexbox controls the format relationships between the ones styled components.

That mixture will give you a footer this is more straightforward to deal with. If the accessory colour adjustments, replace the variable. If the spacing wishes extra respiring room, regulate the shared spacing worth. If the format must stack in a different way on smaller monitors, replace the Flexbox settings as an alternative of rebuilding the entire segment.

Learn Everything About Divi 5’s Flexbox

What We’re Development

Ahead of we commence construction, right here’s a take a look at the completed footer.

Finished Flexbox footer layout in Divi 5

The footer has one primary two-column format. The left facet accommodates two stacked blocks:

  • A yellow CTA block with a heading, supporting textual content, and button
  • A gloomy publication block with an E mail Optin module

The precise facet accommodates two matching white blocks:

  • A navigation hyperlink team
  • A Observe Us team with social icons

Under the principle row, a separate full-width copyright row closes out the footer. This construction provides us a just right reason why to make use of Flexbox. The left and appropriate aspects comprise other types of content material, however they nonetheless want to align cleanly as one footer method.

Step 1: Open The World Footer In Theme Builder

Pass to Divi > Theme Builder. Within the World Template, click on the pencil icon subsequent to the World Footer space to edit it.

Global Footer template in the Divi Theme Builder

The footer opens within the Visible Builder, the place you’ll construct the format the usage of Divi 5’s row, column, module, and Flexbox controls.

Blank Global Footer layout in the Divi Visual Builder

In case your website already has a footer, you’ll adapt the similar procedure to the prevailing construction. If you’re beginning contemporary, start with a clean footer canvas.

Step 2: Create The Design Variables

In case your website already makes use of Design Variables, you’ll reuse your present colour, font, and spacing method. If you’re construction this footer as a standalone workout, create a couple of variables first.

See also  Divi 5: Semantic Elements vs Role Attributes

Open the Design Variables panel and get started with colours. Create or replace variables for:

  • Footer Accessory: The yellow accessory colour used within the CTA block
  • Footer Darkish: The black or darkish background used within the publication block
  • Footer Mild: The white background used within the right-side blocks
  • Footer Muted Textual content: A softer textual content colour for secondary footer textual content

Identify variables through function as an alternative of through worth. Footer Accessory is more straightforward to deal with than a reputation in accordance with the present hex code, for the reason that function can keep the similar although the colour adjustments later.

Saving footer color variables in Divi 5

Subsequent, arrange a font variable if the footer makes use of a typeface other out of your website’s default frame font.

Creating font variables for the footer in Divi 5

Create a Quantity Variable for repeated spacing. Identify it Footer Spacing and set it to 5%. We’ll use this for padding throughout the footer blocks so the spacing remains constant.

In any case, create a Quantity Variable for fluid footer textual content. Put it aside as Footer Font – Fluid and set it to:

clamp(16px, 1rem + 0.4vw, 21px)

This we could footer textual content scale extra easily between smaller and bigger monitors with out surroundings separate font sizes for each and every breakpoint.

The objective isn’t to create variables for each and every conceivable worth. The objective is to create variables for values you are expecting to reuse.

Step 3: Construct The Major Footer Construction

Throughout the footer segment, insert a Flex Offset 2-column row. This would be the primary row that holds the left stack and the suitable stack.

Adding a Flex Offset 2-column row in Divi 5

Open the Row settings and pass to Design > Sizing. Set:

  • Width: 90%
  • Max Width: 1280px
  • Alignment: Middle

Setting footer row width and max width in Divi 5

This assists in keeping the footer content material targeted and forestalls it from stretching too broad on massive monitors. Throughout the left column, upload a nested one-column Row. This row will grasp the CTA content material. Upload those modules inside of it:

  • Heading module: CTA headline
  • Textual content module: Supporting replica
  • Button module: CTA button

Under that CTA row, upload some other one-column Row for the publication signup. Position an E mail Optin module inside of it.

In the suitable column, upload a Workforce module for the navigation hyperlinks. Position a unmarried Heading module inside of it. We’ll use Loop Builder later so this one module can repeat for every web page within the question.

Under that, upload some other Workforce module for the social segment. Inside of it, upload:

  • A Heading module with the textual content Observe Us
  • A Social Media Observe module together with your selected platforms

In any case, upload yet another row beneath the principle two-column row. Use a single-column row and upload a Textual content module for the copyright line.

Adding the copyright row below the footer layout

This is the footer construction in Wireframe view.

Wireframe view of the Divi 5 footer structure

Step 4: Follow Flexbox To The Major Row

Now that the construction is in position, use Flexbox to keep an eye on how the 2 aspects align. Open the principle two-column row settings and pass to Design > Format. Ascertain Format Taste is ready to Flex. Then set:

  • Format Route: Row
  • Horizontal Hole: 0
  • Vertical Hole: 0
  • Align Pieces: Stretch
  • Format Wrapping: No Wrap

Flexbox settings for the main footer row in Divi 5

The row route assists in keeping the 2 primary columns facet through facet. The 0 gaps stay the blocks flush towards every different. Align Pieces: Stretch is helping the columns fill the to be had peak, which assists in keeping all sides visually aligned.

Stay Justify Content material and Align Content material at their defaults for this format. Align Content material handiest turns into related when wrapping creates more than one traces of flex pieces, and this row is ready to No Wrap. Subsequent, open every of the 2 kid columns. In each columns, pass to Design > Format and set Vertical Hole to 0.

This assists in keeping the CTA and publication blocks touching within the left column, and the navigation and social blocks touching in the suitable column.

Step 5: Follow Flexbox To The CTA Block

Open the nested CTA row, the only containing the Heading, Textual content, and Button modules. Pass to Design > Format and make sure Format Taste is ready to Flex. Set Horizontal Hole to 0.

Then pass to Design > Sizing and permit Stretch to Fill. This is helping the CTA row fill the to be had peak throughout the left column as an alternative of leaving awkward empty house beneath the button.

Now open the column inside of this CTA row. Pass to Design > Format, verify Flex is enabled, and set Vertical Hole to 10px.

Then pass to Design > Spacing and set the column padding to the Footer Spacing variable.

The space controls spacing between the modules. The padding controls the gap throughout the CTA block. Conserving the ones jobs separate makes the format more straightforward to regulate later.

Step 6: Taste The CTA Block

Keep throughout the CTA column and pass to Design > Background. Set the background colour in your Footer Accessory variable.

Applying the footer accent background to the CTA column

Subsequent, pass to Design > Field Shadow. Choose Preset 4. Depart each and every worth at 0 aside from Unfold, which must be set to 1. Set the shadow colour to #000000 at 100% energy.

See also  How to Create a Recurring Promotional Banner with Divi

This creates a skinny, flat edge that reads extra like a border than a conventional drop shadow. Open the Heading module and upload the textual content: “Able to Get Began?”. Then, practice the next settings:

  • Tag: H2
  • Font Dimension: 50px
  • Line Top: 1.3em
  • Format Taste: Block

Atmosphere the Heading module to Block assists in keeping it behaving like an ordinary block part throughout the flex column.

Transfer to the Textual content module. Set the textual content colour to black or your darkish footer textual content variable, set Font Dimension to 16px, and set Format Taste to Block.

Styling the CTA text module in Divi 5

End with the Button module. Set the background colour to black and the textual content colour to white. Then pass to Design > Spacing and set the highest and backside padding to 16px.

Step 7: Follow Flexbox To The Publication Block

Now repeat the format setup for the publication row.

Open the nested row that accommodates the E mail Optin module. Pass to Design > Format and make sure Format Taste is ready to Flex. Set Horizontal Hole to 0.

Newsletter row Flexbox layout settings in Divi 5

Open the column inside of that row. Ascertain Flex is enabled beneath Design > Format, then set Vertical Hole to 10px.

Pass to Design > Spacing and set the column padding to the similar Footer Spacing variable.

This assists in keeping the publication block aligned with the CTA block above it and makes use of the similar spacing method.

Step 8: Taste The Publication Block

Open the publication column settings and pass to Design > Field Shadow. Fit the CTA column:

  • Preset: Preset 4
  • Unfold: 1
  • Different values: 0
  • Shadow Colour: #000000 at 100%

Throughout the E mail Optin module, kind Publication because the name. Flip off any fields you do not want, then attach your e mail supplier and e mail checklist.

Pass to Design > Background and set the module background in your Footer Darkish variable.

Below Design > Format, set Format Route to Row and Vertical Hole to 0. This assists in keeping the shape components tighter throughout the darkish block.

Taste the name subsequent. Set the name textual content colour to white and the Font Dimension to 34px. Then customise the enter fields:

  • Enter Background: Black or Footer Darkish
  • Placeholder Textual content: White
  • Enter Textual content: White
  • Border Width: 1px
  • Border Colour: Clear or refined gentle worth

Customise the label textual content as smartly, the usage of white or your gentle footer textual content variable. In case your optin shape makes use of checkbox or radio fields, evaluation the ones types too so that they fit the darkish format.

For the E mail Optin button, set the background to white and the textual content colour to black. Then pass to Design > Spacing and set:

  • Best Padding: 16px
  • Backside Padding: 16px
  • Left Padding: 32px
  • Proper Padding: 32px

In any case, open the E mail Optin module’s spacing settings and set its padding to 0 on both sides. The outer column already handles the spacing, so the module itself does no longer want further interior padding.

Setting the Email Optin module padding to zero in Divi 5

Step 9: Create The Footer Navigation With Loop Builder

Now flip the Heading module throughout the navigation Workforce right into a repeating part. Open the Heading module and pass to Content material > Loop. Toggle Loop Component on.

Set Question Kind to Publish Kind, then set Publish Kind to Pages.

This pulls web page content material into the loop. For a manufacturing footer, evaluation the question settings sparsely so the loop handiest comprises the pages you wish to have within the footer. This isn’t the similar factor as robotically outputting your WordPress navigation menu; this can be a looped web page checklist that you’ll taste and keep an eye on throughout the builder.

Subsequent, pass to Content material > Textual content > Heading. Click on the dynamic content material icon and make a choice Loop Name. The Heading module now shows the name for every web page returned through the loop question.

Then pass to Content material > Hyperlink. Click on the dynamic content material icon at the URL box and make a choice Loop Hyperlink. Every looped heading now hyperlinks to its corresponding web page.

Using Loop Link for footer navigation items in Divi 5

Step 10: Follow Flexbox And Taste The Navigation Workforce

Open the Workforce module that accommodates the looped Heading. Pass to Design > Format and set:

  • Format Route: Column
  • Vertical Hole: 0

Setting the navigation Group vertical gap to zero

Then pass to Design > Sizing and permit Develop to Fill. This we could the navigation team take in the to be had peak in the suitable column.

Enabling Grow to Fill on the navigation Group

Now taste the looped Heading module inside of it.

Pass to Design > Background and set the background to white. Set Format Taste to Block and the heading tag to H4.

For Font Dimension, use the Footer Font – Fluid variable. Set Line Top to 1.3em.

Pass to Design > Sizing and permit Develop to Fill right here as smartly, so every looped heading can stretch calmly throughout the team.

Pass to Design > Spacing and set the module padding to the Footer Spacing variable.

Applying Footer Spacing to the looped heading module

Below Design > Field Shadow, use the similar flat edge remedy:

  • Preset: Preset 4
  • Unfold: 1
  • Different values: 0
  • Shadow Colour: #000000 at 100%
See also  How to Find & Fix Broken Links in WordPress

Applying a flat box shadow edge to footer nav links

Repeat the similar visible remedy for the Observe Us team so the suitable column feels constant.

Step 11: Upload The Copyright Textual content

Open the Textual content module within the copyright row. Click on the dynamic content material icon and make a choice Present Date. Set Date Layout to Customized and input:

Y

This outputs the present yr handiest, so the footer does no longer want a handbook yr replace every January. Within the Ahead of box, kind:

Copyright &replica; Divi

Within the After box, kind:

. All Rights Reserved

Then pass to Design > Textual content and set Textual content Alignment to Middle.

Step 12: Optimize The Footer For Responsive Displays

Transfer to pill and cellular view the usage of the responsive toolbar.

A lot of the format must already behave smartly for the reason that construction is in accordance with Flexbox relationships as an alternative of fastened handbook spacing.

The principle settings to study are:

  • Column stacking: Ascertain the left and appropriate footer stacks seem in the suitable order.
  • Format Route: Modify route on explicit rows or teams if content material must stack in a different way on smaller monitors.
  • Hole: Test whether or not the spacing between stacked pieces nonetheless feels intentional.
  • Develop to Fill and Stretch to Fill: Make certain those settings assist the format as an alternative of forcing awkward heights on smaller monitors.
  • E mail Optin format: Ascertain the enter box and button have enough space as soon as the format narrows.
  • Navigation loop: Make certain the looped hyperlinks don’t really feel too cramped on cellular.
  • Social icons: Overview icon measurement and spacing.
  • Copyright textual content: Make certain the overall line remains readable.

The fluid textual content variable is helping right here for the reason that footer textual content scales between its minimal and most values. You continue to want to evaluation responsive perspectives, however you must want fewer handbook breakpoint fixes.

Save the footer and preview it throughout desktop, pill, and cellular.

Obtain 20 Flexbox Footers For Divi 5

Get all 20 Flexbox footers free of charge, together with each Default and Prestyled variations. Every footer is able to import into your Divi Library and use within the Theme Builder. Simply obtain and get started construction.

Flexbox Footers For Divi 5

Construct Higher Footer Layouts With Flexbox In Divi 5

You simply constructed a responsive footer in Divi 5 with out writing customized CSS.

Design Variables treated repeated colours, spacing, and fluid textual content sizing. Flexbox treated the construction: stretching columns, controlling gaps, stacking content material, and holding similar components aligned.

The bigger takeaway is this workflow isn’t restricted to footers. The similar Flexbox controls can assist with headers, pricing tables, card layouts, function rows, optin sections, and any format the place more than one items want to keep aligned because the display screen adjustments.

As soon as you know how Align Pieces, Hole, and Format Route paintings in combination, you’ll construct layouts that want fewer one-off fixes and grasp up higher throughout display screen sizes.

The publish How To Build A Flexbox Footer In Divi 5 seemed 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!