Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How do I change the logo position?

By
Steven MULLINS
on 6/30/16, 2:44 PM 316 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?

0

Ermin Trevisan

--Ermin Trevisan--
3536
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 6/30/16, 3:44 PM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/30/16, 2:44 PM
Seen: 316 times
Last updated: 6/30/16, 5:24 PM