Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 01h 47m 54s
Claim 50% off
Staff replied Templates

How to add "width: auto; height: auto " CSS to logo header image

Asked by Paul Srch 1 year ago Last activity 1 year ago

I'm using the Maxora template, but it's something I need to do for all your templates.

I'm getting SEO notices about the logo image missing width and height attributes. I can add those in the template settings in custom CSS, but I'm not sure what to add. I did try using

img .logo-image {width: auto;}

but it doesn't look like it added it.

2 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us and sorry for your issue. Do you want to set width height in this portion?

https://prnt.sc/y3hpR6GGWcNg

Then you have to use this CSS in your custom.css file

#sp-header .logo {
    width: auto !important;
    height: auto !important;
}

-Regards.

Mehtaz Afsana Borsha Staff

Hi

Is this solved now? If yes, you can then close this post by accepting the answer.

Log in to reply.