How to Change Logo Size in WordPress

Here, I am going to start in detail that how to change logo size in WordPress Using HTML and CSS code. Also, explain the resized logo in any WordPress theme.

Usually, we are providing easily method to change logo size in Html. As well as, given some examples of live WordPress themes. So, follow some steps in the below section.

Note: there are two main two ways which we explain first through CSS code in Html. And then, second through theme customize.

.logo {
    max-width: 126px;

Now, this is only an example of displaying code. If you find the class name then change class and apply this code. According, to WordPress, then find the below section describe step by step.

How to Change Logo Size in WordPress

Firstly, we are talking about adding CSS code in Html to change logo size. So, need the class or id name from our HTML code.

Therefore, you can get the class name from any WordPress themes and website.

Step 1: Let’s see for getting class name using CSS Right click and go to inspect element otherwise Short key F12.

how to change logo size in wordpress

After that, in this image showing how to find a class name from the logo. So, there are many Html sections therefore make sure to carefully find the exact class name and implement CSS code.

Here, you can see the class name .navbar-brand. which you use in your code but one more thing every theme uses its own custom class.

So, class names not the same as any themes. Therefore, chack class and copy the class name from the Html code.

    max-width: 126px;

Also, as you know where we added this class in WordPress. Let’s see explain in the below section about it.

How to Change Logo Size in Html

Secondly, go to your dashboard to add custom CSS code for change icon size in HTML.

Step 2: Let’s see the dashboard and click the appearance menu button.

how to change logo size in html

Then, on-click customize button. After that, open a new window of front end settings.

Here, are available many custom themes settings to change themes color change logo image and font so on. Therefore, the last menu fields additional CSS.

Step 3: Additional CSS

wordpress site identity logo size

Thus, inside the Additional CSS, you can add CSS code which we get with a class from Html.

So, this is the process to change logo size for any themes. Thus, you can apply this code to any WordPress project or website.

Also, you can add CSS code in the file theme directory. there are so many files therefore find style file and add this code with it. this is a major process to change custom logo size.

Otherwise, you can check the directory main header file in this path project project-name/wp-content/themes/header.php. Now, in this Html code find out the class of logo and put the inline CSS.

WordPress Custom Logo Size

As we know in the above all sections discuss two ways to add CSS. same as you can add with the passing head section directory add CSS. But this is not the best ways.

How to resize WordPress logo size in any theme

Similarly, you can see resize logo image using WordPress themes and plugin like Divi plugin. So, Divi themes already provide an option to change logo size in WordPress with the help of a customize section.

Therefore, I have to describe all points of Divi and change logo size easily with it.

  • Firstly, open the themes to customize the link.
  • Then, open a new customize window. So, click on the site identity button.
  • After that, inside both option one site title and site logo.
  • So, click hide the site title.
  • Then, scroll down the upload logo image and scroll down for logo width. Here you can change logo size without using CSS code WordPress.

Hence, when you back a step or customize using Divi. Then, there are displaying a layout option.

This option for padding from top to bottom size manage. So, that showing logo preparation and responsiveness.

Usually, inside the layout then showing another option to click the header menu. Afterward, again go to site identity.

Also, visible logo option to slide and resize image logo using WordPress Divi theme.

Actually, here a logo option to change logo width as you want to show on your header area with it. Also, learn easy ways to How to Hide Featured Image in WordPress

WordPress Icon size using Divi themes

When you inside see many header options to change logo size. Again, change width and height, using padding to change from the themes option.

The WordPress themes already provide to change size option. Also, you changing some other layout of header and themes similar to it and try after publish. It means to save all changes in customizing settings.

As a rule, Divi provides some settings default. As well as, given some conditions, you can only change with a limit like an image logo size 70% pixel given because they automatically make responsive all functionality.

After that, you change all settings this is the advantage of using these Divi themes for any changes themes easily with it.


Finally, Explain all about that how to change logo size in WordPress. As well as, define Html Added CSS code with the help of an example.

Inside, you see resize logo in HTML example or using Dive themes example. So, if you have any query drop your query in the comment section. Also, you can learn the most similar use How to Change Link Color in WordPress.


  1. I am curious to find out what blog platform you are utilizing? I’m having some small security problems with my latest site and I would like to find something more safe. Do you have any suggestions?

  2. I have to thank you for the efforts you have put in penning this blog. I really hope to see the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has encouraged me to get my own website now 😉

  3. An interesting discussion is worth comment. I do believe that you ought to publish more on this issue, it may not be a taboo subject but generally people don’t speak about these subjects. To the next! All the best!!

Leave a Reply

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

Recent Posts

Related Post

How to Change Link Color in WordPress & Hover Posts/Pages

Here, we provide a code to change link color in WordPress. Also, change the hover color of the page and post using CSS. As well as, give you the best way to change hyperlink color individual page or post. Hence, I explain to the link changing color without code. Therefore, you added a plugin and […]

Read more

How to Hide Featured Image in WordPress Post & Page

Let’s see, How you can simply hide featured image in WordPress. As well as, you can remove featured image individual posts and pages with the example of code. Here, we discuss many methods for hiding the feature images in WordPress. According to, Featured images are added to different WordPress themes in their own way. Likewise, […]

Read more

How to Use WP_Query to Display Custom Post Type in WordPress

Here, I am going to explain the use of wp_query to display custom post type in WordPress. Also, given the best method to apply for get custom post type data using WordPress. As well as, more discuss code with example about wp_query custom post type category and taxonomy. Now, displaying multiple ways to conditions like […]

Read more