Magento does not support loading svg through admin panel, so i am trying to change the website logo through code.

My logo is here:


I changed the file name here:


it now looks like this:

<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
        <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>

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?

  • 2
    Please post a question or translate in English. – Aditya Shah Oct 12 '18 at 11:12
  • I'm voting to close this question as off-topic because of language – Amit Bera Oct 12 '18 at 11:46
  • @AmitBera we have successfully translated question – Murtuza Zabuawala Oct 12 '18 at 12:01
  • 1
    ha ha , You used google. I have wait for user update – Amit Bera Oct 12 '18 at 12:02
  • Yes @AmitBera used google translate :) – Murtuza Zabuawala Oct 12 '18 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.