Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
8842 Widoki

Hello,

I have an issue with Odoo 11 Logo resizing.  I have an online database using one of the free themes available.

I have uploaded the company logo in the company profile. This automatically publishes the logo onto the website.

But the logo appears very small. 

Does anyone knows where to find this doc

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

            <span data-oe-model="res.company" data-oe-id="1" data-oe-field="logo" data-oe-type="image" data-oe-expression="res_company.logo" style="max-height:120px" alt="Logo of bessoniere" title="bessoniere"><img class="img img-responsive" src="/web/image/res.company/1/logo?unique=773f3e5" style=""></span>

        </a>


I believe that if i can set the height in the style argument, I will be able to modify the size. 


Awatar
Odrzuć
Najlepsza odpowiedź

Iget an error

Opening and ending tag mismatch: _cript line 5 and script, line 13, column 26Opening and ending tag mismatch: _cript line 5 and script, line 13, column 26 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks Ermin for your reply and your time. 


About the Size

The logo i uploaded was 394 × 252, so way under these dimension. 


About customising

I have tried the "customize" menu but the code has changed a lot between version 10 and 11.

In Main Layout view I cannot find the following container, which helps control the size of the nav bar header.

In Main Layout view, here is the code existing in Version 10 but absent in version 11

<div id="wrapwrap" t-att-class="pageName or ''">
            <header>
                <div class="navbar navbar-default navbar-static-top" style="height:100px">
                    <div class="container">
                        <div class="navbar-header" style="margin-top:-17px">


In Show Logo view: When changing the logo size, there is no effect on the size.


I version 10,  I change the logo size in Show Logo Layout and  change the nav bar size in Main Layout to adjust for the new size.

but i cannot do the same in version 11. 

Any thoughts about this issue?

Awatar
Odrzuć
Najlepsza odpowiedź

First of all, check if your logo has a width of less than 1024 pixel, if it has more, it will automatically get squared and therefore very small on the website.

If you would like to further customize the logo bar, you'll find the code using the "Customize" menu in the website builder (Show Logo or Main Layout) or in the corresponding qweb views in the Technical menu.
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 19
6885
1
lip 17
9931
0
wrz 21
6505
2
sie 19
5621
2
lip 25
919