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

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

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

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

Then open the theme Customizer and then click on Additional CSS.
Step 5: Add some CSS code

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

In your WordPress Dashboard, click on the theme Customizer.
Step 2: Click on Site Identity

Open the option Site Identity inside the customizer.
Step 3: Edit these 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

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

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

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

In your WordPress Dashboard, click on the theme Customizer.
Step 2: Click on Layout

Then click on Layout inside the customizer.
Step 3: Click on Header

Then click on Header.
Step 4: Then click Site Identity

And then click Site Identity to access the logo settings in Astra.
Step 5: Edit these options

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

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!

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

In the WordPress Dashboard, click on Theme Options under the Divi settings.
Step 2: Upload your logo

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

Then click on ‘Theme Customizer’.
Step 4

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!

Here’s what my logo looks like with these settings. Click on Publish to save your changes.
Conclusion
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.
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.
Regards,
Jimmy
Hi Jimmy,
It really depends on which demo you imported as some will need custom CSS and some will need to be edited in Elementor.
If you give me a link you your website, I will have a better understanding of how you can change your logo size.
Best wishes,
Steve
Hello Steve
I have the same issue as well
Pls check priyastrendfudz.com for me.Struggling with it
Rgds
Kisdhor
Hi Kishor, try using this code:
.site-header .site-branding a img {
max-height: 230px;
}
You can change the ‘230px’ to whatever size you like.
Hope this helps!
Hello Steve, please help me to increase logo size. I have this theme: construction field on localhost.
Thank You
http://www.acmethemes.com/demo/?theme=construction-field
Oh gosh thank you so much! Been searching all day for this. It solved the problem!
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.
Hayo
Thank you! That was super helpful
You’re welcome Jessica 🙂
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!
You’re welcome Rachel, thanks for the awesome feedback! 😀
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.
Thanks Dheeraj, I’m glad you got it sorted 😀
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!
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….
Hi Elizabeth, apologies you got stuck with this.
You can find the Customizer by going to Appearence > Customizer from the WordPress admin.
You can see an image of where to click here: https://coffeeshopblogger.com/wordpress-logo-size/#Step_1_Click_the_customizer
Hope this helps!
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?
Thanks.
Hey Aundra, you can make it any size you like!
Glad you got this to work 🙂
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.
Hi Steve, thanks for the help. It’s Paraphgroup.com.au
I am getting crazy! nothing works!
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; */
}
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 🙂
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?
Thanks
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.
pohyunru.com
Regards,
John