Magento does not support loading svg through admin panel, so i am trying to change the website logo through code.
My logo is here:
public/app/design/frontend/Name/Name_theme/web/images/my-logo.svg
I changed the file name here:
public/app/design/frontend/Name/Name_theme/Magento_Theme/layout/default.xml
it now looks like this:
<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
<arguments>
<argument name="logo_img_width" xsi:type="number">147</argument>
<argument name="logo_img_height" xsi:type="number">24</argument>
<argument name="logo_image_src" xsi:type="string">images/my-logo.svg</argument>
</arguments>
</block>
I deleted the cache using the command:
rm -rf public/var/cache
But this does not seem to help and my logo is not displaying.
Are there any other ways i can achieve this?