I am using an SVG for my logo on a development site J4 Layla Template. If I load an image file png/jpg etc the dimensions are also included. If however I load an SVG they are missing.
<img class="logo-image primary-logo-image" src="/2022/images/svg/logo-resized.svg" alt="Logo">
<img class="logo-image primary-logo-image" src="/2022/images/logo.png" alt="Logo" width="200" height="89">
I can add the width and height manually to the logo.php file in the layout folder but that obviously is not ideal.
<img class="logo-image primary-logo-image" src="/<?php echo Uri::root(true); ?>/<?php echo $logoimagefile; ?>" alt="Logo" width="200" height="89"/>
Is there a way as with standard image files that this can be implemented without making changes to the above file. I know I can use CSS
.logo-image {
width: 180px;
}
Thanks
David