How to Change the WordPress Logo Size in Any Theme

Steve Allen

If you’ve uploaded your logo in WordPress but it looks too big or too small then read on.

Because in this post I’m going to walk you through how to change the WordPress logo size in any WordPress theme.

Even if you’re using a theme that doesn’t let you adjust the logo size within the customizer, this post will help you.

Let’s get straight to it!

Change Your Logo Size if You’re Theme Settings Don’t Allow It

If you’re using a theme like Divi, GeneratePress, Astra or any other theme that let’s you change the logo size in the customizer settings then congrats!

Scroll below for a tutorial on all these themes.

If you’ve already checked your settings and your theme doesn’t allow it then here’s how to change the logo size using CSS. Don’t worry, it’s easy if you follow my steps below.

How to Change the WordPress Logo Size Using CSS

CSS stands for Cascading Style Sheet. Basically, it’s a language which tells the browser how to style different elements on a page.

Let’s use CSS to change the style of the logo size.

Step 1: Inspect the element

1.css inspect element

Right-click anywhere in your browser and you’ll see something like ‘Inspect’ or ‘Inspect Element’. Click on that to view the source code of the page.

Step 2: Click the element highlighter

2.css highlight elements

A window will popup with an icon that looks like this. Click on it. This will highlight all the elements on the page when you hover over them with the mouse.

Step 3: Take note of the logo element

3.css find css class

Hover your mouse over the logo and take note of the text that pops up. This is the CSS class that we need to target to change the size of the logo.

Step 4: Open the theme customizer

4.css click additional css

Then open the theme Customizer and then click on Additional CSS.

Step 5: Add some CSS code

5.css enter css snippet

Now add the following CSS code to adjust the size of your logo:

.my-css-class img { 
  max-height: 65px !important;

And replace .my-css-class with your own CSS class that you found in the element highlighter.

As you can see in the above picture, my CSS class is .site-title-wrapper but yours could be different depending on the theme you’re using.

Once you’ve added the code, you should see the logo change size. You can adjust the max-height value to get the desired size of your logo.

Click on publish and you’re done!

The following tutorials will guide you through changing the logo size in several popular WordPress themes, although it’s a fairly similar process for any theme that allows it inside the Customizer.

How to Change the WordPress Logo Size in GeneratePress

Follow these steps to change the GeneratePress logo size.

Step 1: Open the theme customizer

1.all themes click customize

In your WordPress Dashboard, click on the theme Customizer.

Step 2: Click on Site Identity

Step 2 - generatepress click site identity

Open the option Site Identity inside the customizer.

Step 3: Edit these settings

Step 3 - generatepress logo settings

Hide the site title, upload your logo and then use the slider to select your logo width.

Step 4: You can use the slider or type it in

Step 4 - generatepress logo width

I’ve chosen my logo size to be 250px, but you can decide on what ever suits your website best.

Step 5: Spacing options

Step 5 - generatepress logo example

Here’s an example of what my logo looks like. If you have GeneratePress Pro, then you will also have spacing options above and below the logo.

Step 6: Click Publish

Step 6 - generatepress click publish to save

Click on Publish and you’re done changing the logo size in GeneratePress.

How to Change the WordPress Logo Size in Astra

Here’s how to change the Astra theme logo size.

Step 1: Click the customizer

Step 1 - all themes click customize

In your WordPress Dashboard, click on the theme Customizer.

Step 2: Click on Layout

Step 2 - astra click layout

Then click on Layout inside the customizer.

Step 3: Click on Header

Step 3 - astra click header

Then click on Header.

Step 4: Then click Site Identity

Step 4 - astra click site identity

And then click Site Identity to access the logo settings in Astra.

Step 5: Edit these options

Step 5 - astra logo settings

You’ll then see the Logo settings. Upload your logo, choose your Logo width and uncheck the Display Site Title box.

Step 6: Logo width slider in Astra

Step 6 - astra logo width

You can use the Logo Width slider or type in the number in the box. I’ve set my logo width at 245px.

Step 7: That’s it!

Step 7 - astra logo example

Here’s what my logo looks like after setting the width. Click on Publish to save your changes and you’re done.

How to Change the WordPress Logo Size in Divi

And finally, here’s how to change the Divi theme logo size.

Step 1: Click Theme Options

Step 1 - divi click theme options

In the WordPress Dashboard, click on Theme Options under the Divi settings.

Step 2 - divi add logo and click save

You’ll then see the Divi settings where you can upload your logo. Don’t forget to save your changes.

Step 3: Go to the Theme Customizer

Step 3 - divi click theme customizer

Then click on ‘Theme Customizer’.

Step 4

Step 4 - divi logo settings

Then, click on ‘Header and Navigation’ > ‘Primary Menu Bar’ to view the Divi logo settings.

This is where Divi is slightly different.

First choose the height of the header by selecting the ‘MENU HEIGHT’. I’ve set mine at 65px and then the ‘LOGO MAX HEIGHT’ is a percentage of the menu height.

So if you choose 100 then it’ll be the full height of the header with no space above and below. I’ve set mine at 80% so there’s a little space.

Step 5: And you’re done!

Step 5 - divi logo example

Here’s what my logo looks like with these settings. Click on Publish to save your changes.


As you can see, it’s easy to change the logo size for wordpress and most themes acheive this in a similar way.

You can also use CSS code if your theme doesn’t have the settings to change the logo size in the theme customizer.

Looking for help with your website?

Get one-to-one direct help from me to take your niche site or blog to the next level.

50 thoughts on “How to Change the WordPress Logo Size in Any Theme”

  1. Hi Steve,

    I am using the Cento theme. The theme doesn’t have an option to change the size of the logo. I have applied your suggestions without success.


  2. Thank you so much for sharing!

    One little addition that might help other out here as well. In my case, the logo only increased in size without the top menu being adjusted automatically. The theme I am using (Chelsey – Portfolio Theme for Freelancers and Agencies) required extra CCS adjustment on the ”.menu-chelsey-top-menu” as well. For the ones having the same ”struggle”: I added extra margins on the top and bottom of the ”.menu-chelsey-top-menu” which created a larger top menu.


  3. Wow! Thanks a bunch, this helped me so much, Steve. Really appreciate your time taken to cover these tips, I was so frustrated with my logo size and thanks to you I can finally move on! Great job done!

  4. You’ve shared a working method, really appreciate your work. I was looking for changing logo size but on many sites I just found some code to paste in CSS but it didn’t word. You’ve explained the way to implement it like by hovering on logo and then noting down the code and adding extra CSS.

    Thanks, finally I’ve adjusted logo for my site.

  5. Hello Steve,

    I tried to follow your guidelines but could not get the logo size to adjust. Any tips you can give me? Regardless, thank you for getting this sort of information out on the web!

    • Hey Mark,

      Try adding this CSS to your footer or inside the additional CSS in the customizer.

      header .logo-link img {
      width: 250px;

      Make the width whatever you like.

      Hope it helps!

  6. Step 4: Open the theme customizer

    I am stuck here. I don’t know where to go and find it. Sorry, the instructions need to be more clear….

  7. This helped so much I thought I would have to contact the theme provider for additional help but this solved the problem. But question: will I be able to adjust the sizing to whatever I want? Or is the 230 the max?


  8. Hi Steve,

    Thanks a lot for the very supportive post. I am having the same issue and it’s been few hours that I am trying to find a solution for it. It seems my the logo doesnt change regardless of whatever max-height I put in additional CSS. I really appreciate your help.

    • Hi Adel, what is you website? You’ll need to inspect the element to know the correct CSS class. If the code isn’t changing the size of the logo, then it means the CSS class isn’t correct.

      Hope this helps.

  9. Fixed 🙂
    @media screen and (min-width: 48em) {
    .custom-logo-link img {
    max-width: 260px;

    .custom-logo-link img {
    /* display: inline-block; */
    max-height: 70px;
    /* width: auto; */

    • this works perfectly but the problem is it is also increasing the header size which is not desirable.Can you please help me? I am using cavalier theme.

  10. I’d like to thank you on detailed guide to customize logo size. It was a difficult task before I gone through your article. Keep coming up with such useful information 🙂

  11. Hi,

    I’m having trouble with this. I want to resize my logo but when I click on additional CSS, it says I need to upgrade to customize the CSS. Is there any way round this?


    • Hi Katie, it really depends on the theme you’re using. All themes should allow access to additional CSS because it comes as standard with WordPress. Another options would be to add a CSS plugin to add the code.

      I hope this helps!

  12. Hi Steve,

    I tried all the methods already, but still can’t adjust the logo size correctly. Can you help me to check my website? thank you so much.


    • Hi Ashley, if your website is, try using this code:

      img.up-logo {
      height: 40px;

      You can only make it small though as the image is only 45px in height. If you want it bigger, you’ll have to upload a larger sized image.

      I hope this helps!

  13. Hi! I was able to adjust my logo size (HUGE THANKS) but the padding options are not available. I am using Trellis Bamboo. Any CSS padding tricks?

    • Hi Laura, you could try adding padding: 20px 20px; to the element as well. The first 20px is the top and bottom padding and the second 20px is for the left and right padding.

      I hope this helps.

  14. Yeahhhh none of these work. It has NO affect on the logo size. I dont know if these other people were paid to post positive responses but it is all rubish.

    • Hi Chris, I can assure you no one is paid to leave comments and I sincerely want to help. If you tell me you website, I will gladly take a look.

  15. Hey,
    Thanks for this blog. It helped a lot but can you help me how to increase the height and width both. Because hen I applied your thing, the height settled well but I guess the width needs to be settled as well.

    Looking forward to hearing from you.


  16. Hello Steve,

    I am using colormag theme where custom logo slider is not available. This post is really great but I am looking to set responsive logo for mobile site if you can help me then it would be very helpful for me.


    • Hi Jasmeet, what do you want the logo to do on mobile devices? Is your site


  17. Hi Steve,

    Thanks for sharing – I’ve been trying to increase the logo size in my header on my website: – I tried many of the css and nothing had any effect except this one:

    .header .navbar-logo img {
    max-height: 200px !important;

    but it only gets smaller, not bigger, so it might be a padding issue? Any advice would be appreciated. Thank you.

    • Hi Rachel, try using:

      header .navbar-logo .logo-img {
      height: 200px;

      This will make the logo bigger on desktop at least.

      Hope that helps!

  18. Hey Steve,
    Great info, so far not helping me because for some reason when I do the right click thing I am not seeing the inspect thing. My website is and I am using the Amphibious Theme and cannot get this logo to size up. Any help would be greatly appreciated.

    • Hi David, it looks like you’re using Elegant Themes, so you should be able to adjust the logo size in the theme settings.

      Hope this helps!

  19. Hey Steve, thanks for this super helpful post!

    It all makes sense but i’m trying to increase the size of my friends logo on mobile in the Twenty Twenty-One theme…

    The size of the logo on desktop is perfect but it’s too small on mobile. See website below.

    Any help to increase the size purely on mobile would be much appreciated.


  20. Hi Steve,
    My header logo has stretched sideways and although I can change the height settings in Divi, there is no option to change the width. Can you help, please? I tried all of the options you’ve given here just in case one of them worked, but nothing helps. The website is
    Thanks so much

    • Hi Ingrid,

      When using Divi, you can only make it as big relative to the container it’s in. You’ll have to adjust the entire size of the header if you want the logo any bigger.

      I hope this helps!

Comments are closed.

This website uses cookies to give you the best possible experience. By continuing to use this site, you agree to our cookie and privacy policy.