Admin Layout Logo


#1

Hello guys, I’m wondering how can we add company logo near the title of the admin menu?


#2

You can try to check inside admin.html probably you can check also inside the folder
atk4/ui/template/semantic-ui where all the templates are and also .php files.

inside atk4/ui/src/layout/admin.php check this line:

$this->menuLeft->addHeader($this->app->title);

this is where Welcome to Agile Toolkit default message is… in your case where logo title is…

you can as well check this link

Let me know if you find the solution!
:slight_smile:


#3

Hi, this is working when you change the Header content : $this->menuLeft->addHeader($this->app->title);
in atk4/ui/src/layout/admin.php
with this example:
$img = ‘https://cdn.rawgit.com/atk4/ui/07208a0af84109f0d6e3553e242720d8aeedb784/public/logo.png’;
$this->menuLeft->add([
‘Header’, //specify element
‘Center-aligned header’, //the title
‘aligned’=>‘center’, // aligment class
‘image’=>[$img, ‘disabled’], // logo
‘subHeader’=>‘header with image’ //subtitle
]);