Can someone point me toward the code or file to remove the front end header of the website? I want to delete the entire table with the logo, home, contact us and login/logout.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
<template id="theme_layout" inherit_id="portal.frontend_layout"
name="Top Account Header Dropdown">
<!-- Hide Administrator -->
<xpath expr="//header//ul[@id='top_menu']/li[hasclass('dropdown')]" position="replace">
</xpath>
</template>
<template id="new_custom_layout" inherit_id="website.layout" name="Top Header">
<xpath expr="//div[@id='wrapwrap']//header//nav[hasclass('navbar')]" position="attributes">
<attribute name="style">display: none;</attribute>
</xpath>
<xpath expr="//div[@id='wrapwrap']//header//nav[hasclass('navbar')]" position="before">
"ADD YOUR HEADER HERE"
Hello,
For this you have to add this in your module . in your_module/views/your_file.xml and add this:
<template id="new_footer_default_extend" inherit_id="website.footer_default" customize_show="True" name="Automatic Footer">
<xpath expr="//div[@id='footer']" position="replace">
</xpath>
</template>
Is the folder actually called your_module under the addon folder? Sorry lost me on that one...
your custom module where you have to put this code.
In top right of your website you should see "customize > html editor" Maybe you can do it there. In version 8, it doesnt work so in that case you might be able to accomplish the same editing layout files in .... /addons/website/views/ or looking for css files to modify look of it.
navbar-header is where logo is located, but also menu items!
Good luck~
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
يناير 22
|
3075 | ||
|
0
مارس 24
|
1485 | ||
login form
تم الحل
|
|
1
نوفمبر 23
|
1567 | |
|
0
أكتوبر 16
|
3403 | ||
|
5
يناير 25
|
2852 |