Swap the Order of the Secondary Header Contact Info and Menu

Last modified Sep 10, 2020
Difficulty Beginner
Language CSS

Watch Tutorial

Transcript:

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.

CSS

#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;
}

 

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.

Your Comments

Submit a Comment

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

Receive notifications about our new blog posts.