Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
10094 Lượt xem

// Website.template.xml


<template id="layout_logo_show" inherit_id="website.layout">

<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>

</template>

Ảnh đại diện
Huỷ bỏ

Do you want to remove the logo or just replace it with your own logo?

Câu trả lời hay nhất

Hello Ramkumar,
Here is the code for remove or replace it with your own logo. I hope will work.

<template id="website.layout_logo_show" inherit_id="website.layout" customize_show="False" name="Show Logo">    
    <xpath expr="//header//a[@class='navbar-brand']" position="replace"/>
</template>
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hello everyone,

I want to remove the logo permanently from the navigation menu bar on the website, Which has the option on dashboard -customize - main layout --> show logo toggle button on/off this is used to show and hide logo temporarily and replace by our own logo on settings option.

But the question If we create a website newly from scratch without using the theme common template navigation bar, we want to change the design of the navigation menu of our own and different size so at the point how we would overcome through code  ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 17
3036
1
thg 7 25
789
2
thg 6 25
2372
3
thg 4 25
2588
1
thg 4 25
2057