İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8622 Görünümler

VERSION 9

Thanks to https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691 I managed to change the logo size but now I cannot vertically center the logo.

FROM HTML EDITOR: //Customize/HTML Editor/Show Logo

<?xml version="1.0"?>

<data inherit_id="website.layout" customize_show="True" name="Show Logo">

<xpath expr="//header//a[@class='navbar-brand']" position="replace">

<a href="/" class="navbar-brand logo">

<img src="/logo.png" t-att-alt="'Logo of %s' % res_company.name" t-att-title="res_company.name" style="max-width: 200px; max-height:85px"/>

</a>

</xpath>

</data>

How to I vertically center the logo in the header?

Avatar
Vazgeç
En İyi Yanıt

Please check my following answer: https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691#answer-101712  

Please note that  the height of the navbar might change depending if there is a second line in the navigation because of missing width.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
5
Ara 15
5867
1
Ara 22
4143
3
Oca 24
16043
4
Tem 25
3952
0
Haz 24
1437