Divi Tutorial – Custom Footer

Divi Tutorial – Custom Footer

Footers are usually just made with widgets, and they do okay with what they have. Not the best layout, but still functional.

What we’re going to do today is add a custom layout into the footer, and make it so it’s easily updatable, and will not break from Divi updates.

Important. You will need a child theme for this to stay working even through updates.
Click here for a free Divi child theme.

START WITH A DESIGN

Use the builder on a regular page and design to your content.

Save it as a global item once you’re done.

GET THE ID# OF THE GLOBAL ITEM

Each library item has its own unique id. We will need that to call the global item in the footer.

Check the image below.

NEXT, GO TO THE FOOTER

Now we’re going to add the global item to the footer via shortcode.

Note: If we just add the shortcode as is, it won’t do anything in a php file.

We need to put it inside a php tag.

like this:


<?php echo do_shortcode(' '); ?>

Here’s what the footer.php file looks like.

So in the image above, you’ll see the footer code we’re going to take out.
And the image below is with the new shortcode added in.

Here’s the full footer.php file.

 

 

Line 10: Of course, the 56 should be the id number of your global item.

Or you can just copy line 10 and insert it in your own footer file.

Note: In the video, the module is 66, this is because they are different items. Your id number will most likely be different as well.

 
[sc name=”learn css”]
 
[sc name=”podcast”]
 

 

 

Photo by Hunter Johnson on Unsplash

Get Breakdance

Breakdance is, in my opinion, the best page/site builder on the market, which is why all my tutorials use Breakdance. It's also why I have an affiliate link. You don't pay extra, but I get a little commission, so it helps support the site. Thanks!

Get ACF Pro

Another essential plugin for site building. This isn't an affiliate link, it's just for convenience.

Get WP Codebox Pro

If you'd like an easier to use, and more advanced code management plugin (instead of just editing and making files yourself) then WP codebox pro is for you. Adding php, js, and even SCSS. Pretty nice! Affiliate link below.

Blank Plugin

Sort of blank. It's made to be easy to use with the tutorials. Download and edit any way you see fit.
  1. Hello PK,
    Thanks a lot for this tutorial! Maybe you should promote it a bit more on Youtube, because I needed something like that and I couldn’t find anything, besides adding manually the global section to specific pages, until I stumbled upon yours. Just a quick question: I couldn’t find anywhere the code itself on your website (there’s code screenshots, but not a copiable code). Could you please add it to this page?
    Thanks a lot!

    • Oh snap! I was having trouble with the Divi builder and those lines of php for deleted in the aftermath. haha Sorry bout that. It’s all edited now.

  2. Hi,nice tutorial but how can i exclude or remove in the thankyou page of woocommerce my footer custom? because of i´m having some problem getting a blank footer. Thanks

  3. Hi,i sorry about my english, i mean i want to remove my custom footer on the thankyou page- thanks

  4. I have used your code so that my custom footer appears on all the pages. I ‘m wondering if there is some way to exclude my footer Custom on a particular page.I am having some issues with woocommerce thankyou page,my custom footer is shown with some elements are broken that is the reason why I am thinking about the idea that my footer custom doesn’t appear just on the thankyou page. Could you help me with some code for it? Thanks

  5. Awesome post!!

    I have one question, I do want to show the footer menu in my footer so left that in, how do I get the footer menu to show up above the custom footer section? Right now it’s showing below

    Thanks!

    • In the file I posted above (GitHub) move the shortcode snippet to after

      So move line 10 to 29. (from the github file I posted)

Leave a Reply

Your email address will not be published. Required fields are marked *

New tutorials

Designing Beyond the Brief
Disable Gutenberg Editor on some ACF pages
ACF flexible content fields in Breakdance 2.4
Making a lightbox from a CPT Loop

Got a question? ask!

If you have any question about the content on this page, feel free to send me an email by clicking the button below.

newsletter? sign up!

Sign up to the newsletter for updates on tutorials, news, and offers.

Join the cypher!

An awesome membership program for Breakdance Builder users coupled with an inclusive, friendly community.

Got a question?

If you have a question about something on this page, send me an email, and hopefully I can answer, and we can solve it!