[Resolved] Logo width and height

Home Forums Support [Resolved] Logo width and height

Home Forums Support Logo width and height

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1870029
    Angelo

    As per the discussion in:
    https://generatepress.com/forums/topic/set-an-explicit-width-and-height-on-image-elements-to-reduce-layout-shifts-2/#post-1869933

    I want to set a fixed height and width for the logo

    I set the width at 300px in
    customize – site identity – logo width

    but inspecting the element
    shows as:
    height: auto;
    max-width: 100%;

    How do I set the logo width and height?

    #1870083
    David
    Staff
    Customer Support

    If you inspect the <img> element you will see this CSS is being applied:

    .site-header .header-image {
        width: 300px;
    }

    However the logo is missing the width and height attributes.
    Go to Customizer > General and change the Structure to Flexbox – this should ensure those attributes are added.

    #1870372
    Angelo

    that did it. Thanks

    #1871137
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.