Optimizing Your Divi Site’s Logo Image with Global Presets

Sep 24, 2020 | Everything Divi for WordPress




Optimizing your site’s logo in Divi is an important part of the design of your website. But, it doesn’t have to be a mysterious or daunting endeavor. In fact, Divi makes it pretty simple with the Divi Theme Builder and all of the built-in design options available.

In this tutorial, we are going to show you how to optimize your logos with the right size, position, and style in Divi. Then we’ll show you how to save those designs as global presets you can use for future development.

Let’s jump in!

Download the Logo Image Presets 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.

You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

To use this logo image layout on your global header, you must first import it to the Divi Library as follows:

  1. Go to Divi > Divi Library.
  2. Click the import/export button at the top of the page.
  3. Select the Import tab in the portability popup
  4. Select Import Presets
  5. Click Import Button

optimizing-your-divi-sites-logo-image-with-global-presets Optimizing Your Divi Site’s Logo Image with Global Presets

Then go to the theme builder and edit the global header. Add an image module where you want the logo to be and use the presets to style and place the logo accordingly.

optimizing-your-divi-sites-logo-image-with-global-presets-1 Optimizing Your Divi Site’s Logo Image with Global Presets

Logo Sizes

Before we get to optimizing the logo image with Divi, it is important to consider optimizing the size of the logo image before uploading it to an image module. You don’t want to upload a 1920px by 1080px logo image to your site when you plan on displaying that logo at 100px by 50px. Sure, there ways to resize the logo image after the fact (i.e. srcset and image optimiztion plugins). But, this isn’t best practice since this may lead to slower page load times. And, let’s face it, your logo is too important to settle for messy shortcuts.

Here is a list of common logo image sizes to consider:

For horizontal layout:

  • 250 px x 150 px
  • 350 px x 75 px
  • 400 px x 100 px

For vertical (square) layout:

  • 160 px x 160 px (large)
  • 60 px x 60 px (small)

You may need a bigger logo size than you might think.

It is common to need a smaller logo on desktop and a bigger logo on tablet (or even phone). In Divi, it is common for your column layouts to stack into a one-column layout on tablet and phone displays. And since tablet browser widths normally have a max-width of 980px which is a much larger container for your logo than maybe on desktop. Therefore, you may need to choose a bigger logo size and adjust the max height or width according to the device. If you upload a logo that is smaller than you need on tablet, you cannot increase the size without compromising the clarity of the image. In short, make sure the logo is as big as it’s largest display size on all browser widths.

Optimizing Your Divi Site’s Logo Size and Position with Global Presets

Editing Your Global Header Logo

To get started, navigate to the Divi Theme Builder by going to Divi > Theme Builder. Then click to build a new global header within the default website template.

optimizing-your-divi-sites-logo-image-with-global-presets-2 Optimizing Your Divi Site’s Logo Image with Global Presets

Then select the option, “Build from Scratch”.

optimizing-your-divi-sites-logo-image-with-global-presets-3 Optimizing Your Divi Site’s Logo Image with Global Presets

For this tutorial, we are going to be optimizing the logo included with a custom global header using the Divi Theme Builder. You are welcome to an existing header design or import one of our premade global header (and footer) templates from our blog. To keep things simple, we are going to build a really simple header layout with a logo and a menu.

Add Row and Column Layout

Within the Global Header Layout Editor, add a one-fourth three-fourths column row.

optimizing-your-divi-sites-logo-image-with-global-presets-4 Optimizing Your Divi Site’s Logo Image with Global Presets

In the right column, add an image module just as a place holder to help us visualize the logo placement on the header.

Add the Image Module to Display the Logo Image

Add an image module to the left column.

optimizing-your-divi-sites-logo-image-with-global-presets-5 Optimizing Your Divi Site’s Logo Image with Global Presets

Using the Image Module for Logos

For more traditional header designs, you can take advantage of Divi’s menu module to display your logo. However, with Divi’s dynamic content capabilities, you can display your site’s logo using any number of Divi modules. Basically, you can display your logo anywhere you can display an image in Divi. For example, you could choose to display the site logo on a blurb module image or even as a background image if you wanted. For this tutorial, we are going to concentrate on using the image module to display the site logo. This allows the logo to be a completely separate element (not connected with other elements in a module like a menu module or blurb module). Plus, the image module is built to style images, which gives us a lot of additional design options to style our logo image. Jump to the end of the article for more on how to add a site logo as a dynamic image.

Since we are going to test out a few different logo image sizes, we are going to stick regular images for our examples instead of the dynamic site logo.

Example 1: Building a Left-Aligned Logo Global Preset

For this first example, we are gong to build a simple preset for a left-aligned logo that is 60px by 60px.

Open the image module settings and upload a 60px by 60px logo image to the image module.

optimizing-your-divi-sites-logo-image-with-global-presets-6 Optimizing Your Divi Site’s Logo Image with Global Presets

Update the image design settings as follows:

  • Image Alignment: Center
  • Max Width: 60px
  • Module Alignment (desktop): Left
  • Module Alignment (tablet and phone): Center

optimizing-your-divi-sites-logo-image-with-global-presets-7 Optimizing Your Divi Site’s Logo Image with Global Presets

Even though this is design for a left-aligned logo, the image alignment is set to the center because the image alignment is different from the module alignment. The image alignment is centered within the module. And since the module has a max-width of 60px, the image alignment really doesn’t matter because the module alignment will now dictate the alignment of the logo image.

This is helpful if you ever want to add a background image to the logo or make the container rounded. Essentially, this makes the logo image container the same size as the logo image itself.

Notice that the module alignment is changed to center on tablet since the columns will stack on mobile.

Create New Preset From Current Styles

Now that the logo design is finished, you can create a global preset for the image module by clicking the preset dropdown and selecting “Create New Preset From Current Styles”.

optimizing-your-divi-sites-logo-image-with-global-presets-8 Optimizing Your Divi Site’s Logo Image with Global Presets

Give the logo image preset a unique name. In this case, we can give it the name “Logo Left (60px by 60px)” to let us know exactly what size image to use and how the logo will be aligned when selecting to use the preset.

optimizing-your-divi-sites-logo-image-with-global-presets-9 Optimizing Your Divi Site’s Logo Image with Global Presets

Example 2: Building a Right-Aligned Logo Global Preset

For this next example, we are going to create a right-aligned logo global preset. This will be easy to do with our current design and preset in place. Simply change the column layout to three-fourths one-fourth, move the menu to the left column, and move the logo to the right column.

optimizing-your-divi-sites-logo-image-with-global-presets-10 Optimizing Your Divi Site’s Logo Image with Global Presets

Open the settings for the image module containing the logo image preset we just created.

Then update the design settings to change the module alignment to right.

optimizing-your-divi-sites-logo-image-with-global-presets-11 Optimizing Your Divi Site’s Logo Image with Global Presets

Simple enough. N0w click the preset dropdown and create a new preset from current styles.

optimizing-your-divi-sites-logo-image-with-global-presets-12 Optimizing Your Divi Site’s Logo Image with Global Presets

Give the preset the name “Logo Right (60px by 60px)”.

optimizing-your-divi-sites-logo-image-with-global-presets-13 Optimizing Your Divi Site’s Logo Image with Global Presets

Example 3: Building a Centered Logo Global Preset

For this next example, we are going to build a centered logo global preset. Since this is a centered logo, we can use a larger logo for our example.

First, change the column layout to a 0ne-fourth one-half one-fourth structure so that you have a larger column in the middle for the logo. Then move the logo to the center column

optimizing-your-divi-sites-logo-image-with-global-presets-14 Optimizing Your Divi Site’s Logo Image with Global Presets

Upload a new logo image that is 250px by 150px.

optimizing-your-divi-sites-logo-image-with-global-presets-15 Optimizing Your Divi Site’s Logo Image with Global Presets

Under the design tab, update the following:

  • Max Width: 250px
  • Module Alignment: Center

optimizing-your-divi-sites-logo-image-with-global-presets-16 Optimizing Your Divi Site’s Logo Image with Global Presets

Then add a new global preset from current styles.

optimizing-your-divi-sites-logo-image-with-global-presets-17 Optimizing Your Divi Site’s Logo Image with Global Presets

And give it the name “Logo Center (250px by 150px).

optimizing-your-divi-sites-logo-image-with-global-presets-18 Optimizing Your Divi Site’s Logo Image with Global Presets

Example 4: Building a Left-Aligned Large Logo Global Preset

For this next example, we are going to create a preset for larger left-aligned logo (400px by 100px).

Because the logo is going to be 400px wide, we want a column structure that will give the logo the space it needs.

Let’s go back to a two column structure with the logo on the left and the menu on the right. However, let’s change the structure to one-third two-thirds.

optimizing-your-divi-sites-logo-image-with-global-presets-19 Optimizing Your Divi Site’s Logo Image with Global Presets

This will give us a column that is roughly 320px wide if we keep the default row max-width of 1080px.

Open the image module settings and add a logo image that is 400px by 100px.

optimizing-your-divi-sites-logo-image-with-global-presets-20 Optimizing Your Divi Site’s Logo Image with Global Presets

Under the design tab, update the following:

  • Max Width: 400px
  • Module Alignment (desktop): left
  • Module Alignment (tablet): center

As I mentioned, the column has a max width of 320px which means that the logo image will not be able to span to its full width on desktop. However, it will be able to on tablet once the columns are stacked. For this reason, we want to set the max-width of the image to 400px.

Now the logo is slightly larger on tablet as well as being centered.

optimizing-your-divi-sites-logo-image-with-global-presets-21 Optimizing Your Divi Site’s Logo Image with Global Presets

optimizing-your-divi-sites-logo-image-with-global-presets-22 Optimizing Your Divi Site’s Logo Image with Global Presets

Then add a new global preset from current styles.

optimizing-your-divi-sites-logo-image-with-global-presets-23 Optimizing Your Divi Site’s Logo Image with Global Presets

Give it the name “Logo Left (400px by 100px)” and save the preset.

optimizing-your-divi-sites-logo-image-with-global-presets-24 Optimizing Your Divi Site’s Logo Image with Global Presets

Example 5: Building a Left-Aligned Logo with Hover Effects Global Preset

For this final example, we are going to add some hover effects to a left-aligned logo and save it as a new global preset.

Normally, people link their logo to the homepage. Adding a hover effect can improve the UX by making its clickability more obvious.

For this example, we are going to use the 60px by 60px logo image with the “Logo Left (60px by 60px)” preset. Open the image settings and select the preset from the list.

optimizing-your-divi-sites-logo-image-with-global-presets-25 Optimizing Your Divi Site’s Logo Image with Global Presets

Now we can tweak the preset with some hover effect styles before saving it as a new preset.

Update the following:

  • Rounded Corners: 50%

optimizing-your-divi-sites-logo-image-with-global-presets-26 Optimizing Your Divi Site’s Logo Image with Global Presets

  • Box Shadow: see screenshot
  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 0px (desktop) 5px (hover)
  • Shadow Color: #ac3cf7

optimizing-your-divi-sites-logo-image-with-global-presets-27 Optimizing Your Divi Site’s Logo Image with Global Presets

Then add the following transform rotation on hover:

  • Transform Rotate Z Axis (hover): 90deg

optimizing-your-divi-sites-logo-image-with-global-presets-28 Optimizing Your Divi Site’s Logo Image with Global Presets

Then create a new preset from current styles and name it “Logo Left w/ Hover (60px by 60px)”.

optimizing-your-divi-sites-logo-image-with-global-presets-29 Optimizing Your Divi Site’s Logo Image with Global Presets

Here is the result.

optimizing-your-divi-sites-logo-image-with-global-presets Optimizing Your Divi Site’s Logo Image with Global Presets

Adding a Dynamic Site Logo to the Image Module

To add your site logo dynamically to the image module, first, you need to make sure and upload the site logo under Divi Theme Options.

optimizing-your-divi-sites-logo-image-with-global-presets-30 Optimizing Your Divi Site’s Logo Image with Global Presets

Keep in mind the size of the logo you are selecting.

optimizing-your-divi-sites-logo-image-with-global-presets-31 Optimizing Your Divi Site’s Logo Image with Global Presets

Then go the image module that has your global preset and open the settings. Delete the current image and then click the dynamic content icon. From the dropdown, select Site Logo.

optimizing-your-divi-sites-logo-image-with-global-presets-32 Optimizing Your Divi Site’s Logo Image with Global Presets

Now your image module will pull your site’s logo dynamically.

optimizing-your-divi-sites-logo-image-with-global-presets-33 Optimizing Your Divi Site’s Logo Image with Global Presets

Don’t forget to add a dynamic homepage link to the logo as well.

optimizing-your-divi-sites-logo-image-with-global-presets-34 Optimizing Your Divi Site’s Logo Image with Global Presets

Final Thoughts

Hopefully this tutorial will help streamline the process of adding logos to your Divi headers. It starts with optimizing the size of your logo image before you even upload it to the Divi theme. Then you can use Divi’s built-in design settings to adjust the size and position of the image for different column layouts and different devices.

Of course, each website will require its own unique style, some of which will break out of the guidelines set in these examples. But I’m confident that with a few tweaks, you can create new presets for any unique layout with ease!

I look forward to hearing from you in the comments.

Cheers!


Source

WordPress Development

SEO NEWS

seo news

We’re listening.

Have something to say about this article? Share it with us on Facebook, Twitter or LinkedIn:

SHARE IT HERE:

Subscribe ToThe Weekly SEO Trade News Updates

Get the latest SEO, SEM and SMM marketing intel, tips and tricks from one of the best SEO Gurus online. 

Every Tuesday morning we send out an aggregated email listing all new posts on SEO Trade News.

Excellent! Now check your email to confirm your subscription.