From v1.7.2, you just need to upload your logo using the user interface.
The easiest way to customize the logo is by changing the site’s name (See here).
But if you want to replace the logo with an image, you need to edit the layout files, by following the next steps:
1. Open the following files:
– @app/views/layouts/main.php
– @app/views/layouts/admin.php
2. Replace this line:
'brandLabel' => Html::tag("span", Yii::$app->settings->get("app.name"), ["class" => "app-name"]),
By:
'brandLabel' => '<img src="/path/to/my/logo.png" />',
3. And, open the following file:
– @app/views/user/views/layouts/public.php
And replace this line:
<?= Html::tag("h1", Yii::$app->settings->get("app.name"), ["class" => "app-name"]) ?>
By:
<img src="/path/to/my/logo.png" />
That’s all!