Skip to Content
Menu
This question has been flagged
1 Reply
7333 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
5
Dec 15
4733
1
Dec 22
2757
3
Jan 24
14179
0
Jun 24
388
3
Nov 23
2065