Footers frequently get constructed after the remainder of the web page is finished, and that generally displays. Columns prevent lining up, spacing feels inconsistent, and the structure begins to fall aside once you take a look at it on smaller monitors.

Divi 5 will provide you with a greater technique to construct footer layouts with its Flexbox controls. As an alternative of adjusting alignment with one-off margins and padding, you’ll make a decision how footer sections stretch, stack, align, and reflow immediately within the builder.

On this educational, we’ll construct a responsive footer with a CTA block, e-newsletter 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 uncomplicated to regulate throughout desktop, pill, and cellular.

Why Construct A Flexbox Footer In Divi 5?

A footer may glance easy, nevertheless it generally incorporates a number of other content material sorts: calls to motion, menus, signup bureaucracy, social icons, prison textual content, and every now and then touch main points.

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

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

  • Align Pieces: Controls how flex pieces align around the pass axis. On this construct, Stretch is helping columns fill the to be had top 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 each and 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 way we use throughout Divi 5 builds. Design Variables outline repeated values, similar to colours, spacing, and fluid font sizes. Flexbox controls the structure relationships between the ones styled components.

That mixture will provide you with a footer this is more uncomplicated to deal with. If the accessory colour adjustments, replace the variable. If the spacing wishes extra respiring room, modify the shared spacing price. If the structure must stack otherwise on smaller monitors, replace the Flexbox settings as a substitute of rebuilding the entire phase.

Be informed The entirety About Divi 5’s Flexbox

What We’re Development

Sooner than we begin development, 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 structure. The left aspect incorporates two stacked blocks:

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

The best aspect incorporates two matching white blocks:

  • A navigation hyperlink staff
  • A Apply Us staff with social icons

Underneath the principle row, a separate full-width copyright row closes out the footer. This construction offers us a excellent explanation why to make use of Flexbox. The left and correct aspects include other types of content material, however they nonetheless want to align cleanly as one footer components.

Step 1: Open The International Footer In Theme Builder

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

Global Footer template in the Divi Theme Builder

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

Blank Global Footer layout in the Divi Visual Builder

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

Step 2: Create The Design Variables

In case your website online already makes use of Design Variables, you’ll reuse your current colour, font, and spacing components. In case you are development this footer as a standalone workout, create a couple of variables first.

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 e-newsletter block
  • Footer Gentle: The white background used within the right-side blocks
  • Footer Muted Textual content: A softer textual content colour for secondary footer textual content

Title variables via function as a substitute of via price. Footer Accessory is more uncomplicated to deal with than a reputation in keeping with the present hex code, for the reason that function can keep the similar even supposing 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 online’s default frame font.

Creating font variables for the footer in Divi 5

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

In any case, create a Quantity Variable for fluid footer textual content. Reserve it 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 purpose isn’t to create variables for each and every imaginable price. The purpose is to create variables for values you are expecting to reuse.

Step 3: Construct The Major Footer Construction

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

Adding a Flex Offset 2-column row in Divi 5

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

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

Setting footer row width and max width in Divi 5

This helps to keep the footer content material targeted and forestalls it from stretching too huge on massive monitors. Throughout the left column, upload a nested one-column Row. This row will dangle the CTA content material. Upload those modules inside of it:

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

Underneath that CTA row, upload any other one-column Row for the e-newsletter signup. Position an E mail Optin module inside of it.

In the precise column, upload a Staff 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 each and every web page within the question.

Underneath that, upload any other Staff module for the social phase. Inside of it, upload:

  • A Heading module with the textual content Apply Us
  • A Social Media Apply module along with your selected platforms

In any case, upload another row under 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: Observe Flexbox To The Major Row

Now that the construction is in position, use Flexbox to keep watch over how the 2 aspects align. Open the principle two-column row settings and move to Design > Format. Ascertain Format Taste is about 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 course helps to keep the 2 primary columns aspect via aspect. The 0 gaps stay the blocks flush towards each and every different. Align Pieces: Stretch is helping the columns fill the to be had top, which helps to keep either side visually aligned.

Stay Justify Content material and Align Content material at their defaults for this structure. Align Content material most effective turns into related when wrapping creates a couple of strains of flex pieces, and this row is about to No Wrap. Subsequent, open each and every of the 2 kid columns. In each columns, move to Design > Format and set Vertical Hole to 0.

This helps to keep the CTA and e-newsletter blocks touching within the left column, and the navigation and social blocks touching in the precise column.

Step 5: Observe 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 about to Flex. Set Horizontal Hole to 0.

Then move to Design > Sizing and allow Stretch to Fill. This is helping the CTA row fill the to be had top within the left column as a substitute of leaving awkward empty house under the button.

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

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

The distance controls spacing between the modules. The padding controls the distance within the CTA block. Maintaining the ones jobs separate makes the structure more uncomplicated to regulate later.

Step 6: Taste The CTA Block

Keep within the CTA column and move to Design > Background. Set the background colour on your Footer Accessory variable.

Applying the footer accent background to the CTA column

Subsequent, move to Design > Field Shadow. Make a choice Preset 4. Go away each and every price at 0 excluding Unfold, which will have to be set to 1. Set the shadow colour to #000000 at 100% power.

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: “In a position to Get Began?”. Then, observe the next settings:

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

Surroundings the Heading module to Block helps to keep it behaving like a standard block part within 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 Measurement 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 move to Design > Spacing and set the highest and backside padding to 16px.

Step 7: Observe Flexbox To The Publication Block

Now repeat the structure setup for the e-newsletter row.

Open the nested row that incorporates the E mail Optin module. Pass to Design > Format and make sure Format Taste is about 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 helps to keep the e-newsletter block aligned with the CTA block above it and makes use of the similar spacing components.

Step 8: Taste The Publication Block

Open the e-newsletter column settings and move 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 identify. Flip off any fields you don’t want, then attach your electronic mail supplier and electronic mail record.

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

Below Design > Format, set Format Route to Row and Vertical Hole to 0. This helps to keep the shape components tighter within the darkish block.

Taste the identify subsequent. Set the identify textual content colour to white and the Font Measurement 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 delicate mild price

Customise the label textual content as neatly, the use of white or your mild footer textual content variable. In case your optin shape makes use of checkbox or radio fields, assessment the ones types too in order that they fit the darkish structure.

For the E mail Optin button, set the background to white and the textual content colour to black. Then move 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 additional inside 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 within the navigation Staff right into a repeating part. Open the Heading module and move to Content material > Loop. Toggle Loop Component on.

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

This pulls web page content material into the loop. For a manufacturing footer, assessment the question settings moderately so the loop most effective comprises the pages you need within the footer. This isn’t the similar factor as robotically outputting your WordPress navigation menu; this is a looped web page record that you’ll taste and keep watch over within the builder.

Subsequent, move to Content material > Textual content > Heading. Click on the dynamic content material icon and make a choice Loop Identify. The Heading module now shows the identify for each and every web page returned via the loop question.

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

Using Loop Link for footer navigation items in Divi 5

Step 10: Observe Flexbox And Taste The Navigation Staff

Open the Staff module that incorporates the looped Heading. Pass to Design > Format and set:

  • Format Route: Column
  • Vertical Hole: 0

Setting the navigation Group vertical gap to zero

Then move to Design > Sizing and allow Develop to Fill. This we could the navigation staff take in the to be had top in the precise 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 Measurement, use the Footer Font – Fluid variable. Set Line Top to 1.3em.

Pass to Design > Sizing and allow Develop to Fill right here as neatly, so each and every looped heading can stretch flippantly within the staff.

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%

Applying a flat box shadow edge to footer nav links

Repeat the similar visible remedy for the Apply Us staff so the precise 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 Structure to Customized and input:

Y

This outputs the present 12 months most effective, so the footer does no longer desire a guide 12 months replace each and every January. Within the Sooner than box, kind:

Copyright © Divi

Within the After box, kind:

. All Rights Reserved

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

Step 12: Optimize The Footer For Responsive Monitors

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

A lot of the structure will have to already behave neatly for the reason that construction is in keeping with Flexbox relationships as a substitute of mounted guide spacing.

The primary settings to study are:

  • Column stacking: Ascertain the left and correct footer stacks seem in the precise order.
  • Format Route: Regulate course on particular rows or teams if content material must stack otherwise on smaller monitors.
  • Hole: Test whether or not the spacing between stacked pieces nonetheless feels intentional.
  • Develop to Fill and Stretch to Fill: Make sure that those settings lend a hand the structure as a substitute of forcing awkward heights on smaller monitors.
  • E mail Optin structure: Ascertain the enter box and button have sufficient room as soon as the structure narrows.
  • Navigation loop: Make sure that the looped hyperlinks don’t really feel too cramped on cellular.
  • Social icons: Overview icon dimension and spacing.
  • Copyright textual content: Make sure that 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 assessment responsive perspectives, however you will have to want fewer guide 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 totally free, together with each Default and Prestyled variations. Each and every footer is able to import into your Divi Library and use within the Theme Builder. Simply obtain and get started development.

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 maintaining similar components aligned.

The bigger takeaway is this workflow isn’t restricted to footers. The similar Flexbox controls can lend a hand with headers, pricing tables, card layouts, characteristic rows, optin sections, and any structure the place a couple of items want to keep aligned because the display adjustments.

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

The submit How To Construct A Flexbox Footer In Divi 5 gave the impression first on Sublime Subject matters Weblog.

WordPress Web Design

[ continue ]