3

I had created custom theme in Magento 2 and parent theme as Magento/blank. in my custom theme i am changed logo for my theme. I had declared the theme logo in the app/design/frontend/Prasan/Sanku/layout/default.xml

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_file" xsi:type="string">images/logo_new.png</argument>
                <argument name="logo_img_width" xsi:type="number">300</argument>
                <argument name="logo_img_height" xsi:type="number">300</argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

after this code i had cleared following files var/cache , var/generation, var/view_preprocessed and even pub/static/ still theme logo not changed.

I had uploaded logo_new.png at app/design/frontend/Prasan/Sanku/web/images/

4

We need to declare in

app/design/frontend/Prasan/Sanku/Magento_Theme/layout/default.xml

  • thanks Bilal Usean. its a small think i missed. thanks again. – Pradeep Sanku Jul 15 '16 at 6:28
  • @PradeepSanku, you didn't miss anything. Magento's documentation is stated as your original question, but their documentation is wrong. – Brent May 4 '17 at 20:26

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.