Swap the Order of the Secondary Header Contact Info and Menu

Last modified Jan 28, 2020
Difficulty Beginner
Language CSS

Watch Tutorial


Hey everybody, David here from Divi Space. By default, the Divi Theme displays the social media icons, phone number and email on the left side – and the secondary menu items are on the right. But what if you want to reverse this alignment? Today I’m gonna show you how to do just that! Let’s get started.  Just paste the code to your website. There are a few ways you can do this. The best practice is always to add the code to your child theme.

Alternatively, you can add the code to the theme customizer and that’s how I will do it here. Let’s go the theme customizer and choose the ‘additional CSS’ tab. Paste the code. That’s it! Easy, right?! Was this video helpful? Let us know in the comments and don’t forget to hit like and subscribe because there’s more to come! Thanks for watching! We’ll see you in the next tutorial.

Does this snippet (still) work?

Please let us know in the comments if everything worked as expected. We have tested this code with the Version: 3.29.3 of the Divi Theme.
If you think this code saved you time, we will be happy to receive a comment! 🙂

And subscribe to our youtube channel because there’s more to come!

License: This snippet is created by Divi Space, September 2019. Licensed under the GNU General Public License, no warranty; click here for details.


#top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  flex-wrap: wrap; }

#top-header  .container:before, #top-header .container:after {
  display: none; }

#top-header #et-info, #top-header #et-secondary-menu {
  float: none !important;


Your Comments

Submit a Comment

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

Receive notifications about our new blog posts.

Before You Start

Build a Child Theme

Child themes are incredibly important for the overall look, feel, and navigation of your website, so we encourage you to take the time to get to know the content. This will help your web design and development processes tremendously. That’s why we’ve made it super easy to build a child theme for Divi or Extra in seconds!

Generate Child Theme

How to Add Java Script and jQuery to Divi

There are four ways you can add JavaScript or jQuery to a Divi website: use the code module, the Divi Theme Options console, enqueue scripts using the functions.php file, or using a plugin.

Read More

How to Add CSS to Divi

Divi users can choose between five different methods to add custom CSS to their websites. Read more about these various methods you can use to add custom CSS to your Divi theme, as well as better understand the pros and cons of each method.

Read More