• Hi,

    In which file can I set the constant width and height dimensions of the logo?

    <img src="https://my.blog/wp-content/logo-blog.svg" class="custom-logo" alt="blog" decoding="async">

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @lukash4,

    Thank you for reaching out,

    Please navigate to WP Dashboard > Appearance > Customizer > Header > Logo. After uploading the logo, the width, and height options will show https://postimg.cc/9Dn58BKb.

    Note: if you use a custom header, you need to edit the logo on your custom header type. https://docs.oceanwp.org/article/355-how-to-create-a-custom-header.

    I hope it helps.
    Best Regards

    Thread Starter lukash4

    (@lukash4)

    Thanh you to your answer.

    In the Customizer I can only define “Max width” and “Max height”. I want to define exact and constant logo dimensions: width=”350″ height=”60″. Is this possible by editing the files?

    Hello @lukash4,

    Setting the exact dimensions is not correct, you must not set the height. This will be set automatically.
    For example, if your image has a 350px width, then you need to set only the max width for the logo:350px, and the height would be auto.
    Furthermore, you can put the CSS below in Customizing > Custom CSS/JS > CSS Code(without editing HTML):

    #site-logo #site-logo-inner a img {
        max-width: 350px !important;
        width: 350px !important;
        height: auto !important;
    }

    Please read this link for more information about the CSS/JS code on the customizer: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website.

    Note: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).

    I hope that helps.
    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘height and width of the website logo’ is closed to new replies.