Skip to Content
Menu
This question has been flagged
3 Replies
2382 Views

J'essaye de customiser la page "nous contacter", tout est ok mais mon logo n'est pas centré verticalement. Il est collé en haut de l'écran :/

Je ne sais pas comment gérer ce problème, j'ai l'impression qu'on a pas accès a la partie CSS, et dans l'éditeur HTML je ne pense pas pouvoir régler le problème :


<?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"/>
</a>
</xpath>
</data>
Avatar
Discard

This is an english forum, please use english language.

Best Answer

Just to give you a hint:

For this customer http://www.restaurant-roessli.ch  I had to expand the heigth of the navbar. I did it in the HTML editor by adding a style parameter in the "Show logo" template

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

And in the main layout I've changed the following (height and margin-top):

<body>
            <div id="wrapwrap">
                <header>
                    <div class="navbar navbar-default navbar-static-top" style="height:120px">
                        <div class="container">
                            <div class="navbar-header" style="margin-top:-17px">
                                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
                                    <span class="sr-only">Toggle navigation</span>
                                    <span class="icon-bar"/>
                                    <span class="icon-bar"/>
                                    <span class="icon-bar"/>


Avatar
Discard
Author Best Answer

<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-height:100px"/>
</a>
</xpath>
</data>


does not work for me :/ No change for me after modification. Version Odoo 9.0e-20160330

Avatar
Discard

My answer was not complete, I have amended it.

Related Posts Replies Views Activity
0
Feb 20
2146
3
Mar 16
6333
1
Mar 24
1570
0
Jun 21
1771
1
Jun 19
3012