How to Create a Fixed Footer Bar for Your Divi Theme

Fixed footer bars can be a convenient way to keep important information about your website at the forefront as the user engages with your page content on any device. Like with Divi, a footer bar usually exists as a static element at the very bottom of the page after the main footer content. They include things like copyright text and social media icons. But, if you don’t that footer bar content hidden at the bottom of the page, you can build a custom footer bar that floats at the bottom of the screen as the user scrolls.

In this tutorial, we are going to design a completely custom fixed footer bar using Divi’s theme builder. This will come in handy for keeping those small but significant pieces of content in clear sight at all times.

Let’s get started.

Sneak Peek

Here is a quick look at the fixed footer bar we will design.

Download the Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

How to Add the Fixed Footer Bar Template Download to Your Divi Site

WARNING!: Adding this template will override the default website template (if you have one) on your Divi site. We suggest adding this to a test site so that you don’t mess anything up on a live site.

To import the fixed footer bar template to your own website, unzip the download zip file to access the JSON file.

Then go the WordPress Dashboard and navigate to Divi > Theme Builder.

Then click the portability icon at the top right of the page.

Inside the portability popup, choose the JSON file you just unzipped and select the option “Download backup before importing”, just in case you had something in the default website template previously that you didn’t want to override.

Then click the Import button.

Lastly, save the Theme Builder changes and view a live page to see the fixed footer bar.

Now, let’s get to the tutorial, shall we?

Part 1: Adding a Global Footer

Divi’s Theme Builder allows you to replace the default footer with a new one by updating the Default Website Template.

To create a global footer, go to the WordPress Dashboard and navigate to Divi > Theme Builder. Then click the “Add Global Footer” space inside the Default Website Template.

divi fixed footer bar

Then select the option “Build Global Footer” from the dropdown.

divi fixed footer bar

This will deploy the Template Layout Editor where you will immediately be prompted with the three choices for how you want to start building. Select “Build From Scratch”.

divi fixed footer bar

Part 2: Creating the Fixed Footer Bar

Now that we are editing from the template layout editor, we can start designing the fixed footer bar. Once done, you will have a fixed footer bar with three columns that are ready for content.

Add Three-Column Layout to Row

First, add a three-column layout to the row.

divi fixed footer bar

Section Height

After the three-columns are added, let’s give a set height to the section. This is important for creating the space at the bottom of the page where the fixed row will eventually come to rest. We will also take out the default top and bottom padding as well.

To set the height and padding, open the section settings and update the following:

  • Height: 85px
  • Padding: 0px top, 0px bottom

divi fixed footer bar

Row Settings

Now that our section is ready, we are ready to customize the row to serve as the fixed footer bar. Open the settings for the row and then update the following:

Background

  • Background Color: #1a1e36

divi fixed footer bar

Size and Spacing

  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%
  • Padding: 0px top, 0px bottom, 3% left, 3% right

divi fixed footer bar

Custom CSS

Although the row will be fixed, we want the height of the row to match the height of the parent section so that the space at the bottom of the page will adequately contain the row. And, we want to make sure the content within the row stays vertically aligned. To do this, add the following custom CSS to the row’s main element:

Desktop

height: inherit !important;
display:flex;
align-items: center;

Phone

height: inherit !important;
display:block;

divi fixed footer bar

Fixed Positioning

To make the row fixed so that it floats at the bottom of the screen, we need to give it a fixed position at the bottom center location as follows:

  • Position: Fixed
  • Location: bottom center

divi fixed footer bar

Part 2: Creating the Fixed Footer Bar Content

At this point, we have a footer bar in the fixed position ready for content. We can add any content we want to each of the three columns. But since this is a footer “bar” with a limited height of 85px, we need to limit the content amount. For this reason, we will add a small menu with a dynamic logo and 4 menu items in column 1. In column 2, we will add copyright text with a dynamic current year. In column 3, we will add three social media follow icons.

Add Menu to Column 1

In column 1, add a menu module.

divi fixed footer bar

Select Menu

Then select one of the menus you have already built on your website. Make sure to keep the menu items to 4 or less.

divi fixed footer bar

Add Site Logo as Dynamic Content

For the logo menu, we are going to add the site logo dynamically. Click the “Use Dynamic Content” icon while hovering over the logo preview area. Then select Site Logo from the dropdown.

divi fixed footer bar

Remove Background

Then remove the default background from the menu so that it is transparent.

divi fixed footer bar

Menu Design

At this point, we are ready to add design to the menu. For this design, we are going to keep it simple and small. Update the following design settings:

  • Menu Font: Overpass
  • Menu Text Color: #b59c61
  • Image Sepia: 100%
  • Logo Max Height: 50px

divi fixed footer bar

Add Copyright Text to Column 2

Once the menu is in place, jump over to column 2 to add the copyright text.

Add Text Module

Add a new text module to column 2.

divi fixed footer bar

Add Current Date Dynamically with Before and After Text

Here we are going to get creative with dynamic content to display the current year within the copyright text. This will make sure the year updates automatically for the life of the site.

To do this, click the “Use Dynamic Content” icon and select “Current Date” from the list.

divi fixed footer bar

In the Current Date popup, update the following:

  • Before:
  • Copyright ©
  • After:
  •  | All Rights Reserved
  • Date Format: Custom
  • Custom Date Format: 20y

divi fixed footer bar

Text Design

The update the text design and margin as follows:

  • Text Font: Overpass
  • Text Text Color: #b59c61
  • Text Alignment: center
  • Margin (phone only): 10px top, 10px bottom

divi fixed footer bar

That takes care of the copyright text.

Add Social Media Follow Icons to Column 3

In column 3, add a social media follow module.

divi fixed footer bar

Add Social Networks

Under the content tab, add the social networks needed for the site. For this design, we are using three.

divi fixed footer bar

Social Media Follow Settings

Then update the design settings for all the social media follow icons as follows:

  • Module Alignment: right (desktop and tablet), center (phone)
  • Icon Color: #1a1e36
  • Use Custom Icon Size: YES
  • Icon Font Size: 16px (desktop and tablet), 14px (phone)

divi fixed footer bar

Update Social Network Settings

To update the individual social network icon design, open the settings for the first network and update the following:

  • Background Color: #ffffff
  • Padding: 8px right, 8px left
  • Rounded Corners: 8px

divi fixed footer bar

Extend Social Network Settings to All

Then open the more settings menu for the first network and select “Extend Item Styles” from the list. In the extend styles popup, choose to extend the styles throughout “This Column” and click Extend.

divi fixed footer bar

This will extend the design to the rest of the icons in the column.

Disable Column 1/Menu on Tablet and Phone

In order to make the footer bar mobile-friendly, we need to disable one of our columns with its content on tablet and phone display. For this example, we are going to disable the menu from showing by disabling column 1 on phone and tablet as follows:

divi fixed footer bar

Save Results

Make sure to save the layout before exiting the layout editor.

divi fixed footer bar

Then also make sure to save the changes for the Divi Theme Builder.

divi fixed footer bar

Final Result

To view the result, pull up a live page on your site. Here is what it looks like on a page using the Event Layout Pack.

divi fixed footer bar

Watch how the footer stays fixed until coming to rest inside the section at the bottom of the page.

Final Thoughts

Adding a fixed footer bar makes good sense in some cases. The height of the bar is small enough so that it doesn’t distract or take up too much real estate on mobile. And it gives you the opportunity for adding important CTAs for better conversions and smoother user experience.

For this design, the space at the bottom of the page is created by setting a fixed height to the section and then allowing the fixed row to inherit the section height (despite being fixed). However, there are other ways to generate container space for things like this if you find the set height to limiting or unresponsive.

I hope it comes in handy.

I look forward to hearing from you in the comments.

Cheers!

The post How to Create a Fixed Footer Bar for Your Divi Theme appeared first on Elegant Themes Blog.

Go to source

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.