How to change theme...
By videostutorials
2
0
0
  • General Fiction

Description

In magento 2 the default the fomat of image is svg and the default name of the logo is logo.svg .It is presnt in the theme directory <theme drectory>/web/images/logo.svgIn this directory it automatically recognize theme logo. Declaring Theme Logo To declare theme logo you have to create default.xml file in the given path <theme_dir>/Magento_Theme/layout/default.xml and paste the code in the default.xml. <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/my_logo.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> To Declare logo size is optional

How to change theme logo in magento 2

Continue Reading on Wattpad
How to ch...
by videostutorials
2
0
0
Wattpad