Hide duplicate Odoo header on rendered TNCSC website pages
Add a frontend style scoped to pages containing the custom TNCSC header. This complements template overrides and also covers website-editor copies while preserving standard navigation on other pages. Validated by injecting the compiled CSS into the live homepage at desktop and mobile widths, checking custom mobile menu expansion, and confirming an ordinary page retains its default header. SCSS compilation and manifest checks passed.
This commit is contained in:
parent
a4d3f57f39
commit
997c87737f
@ -57,6 +57,7 @@ that applies to the community_* product modules.
|
||||
],
|
||||
'web.assets_frontend': [
|
||||
'tncsc_deployment/static/src/scss/login_theme.scss',
|
||||
'tncsc_deployment/static/src/scss/website_navigation.scss',
|
||||
],
|
||||
'web.assets_backend': [
|
||||
'tncsc_deployment/static/src/scss/tncsc_backend_theme.scss',
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
// Website editor copies can bypass the original page template overrides.
|
||||
// Match the rendered TNCSC header so those pages also have one navigation bar.
|
||||
// Pages without custom navigation keep the standard Odoo header.
|
||||
#wrapwrap:has(> main .tncsc-top-header) > header#top {
|
||||
display: none !important;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user