Hide duplicate Odoo header on rendered TNCSC website pages
Some checks failed
CI / Brand-leak check (push) Has been cancelled
CI / flake8 / pylint-odoo / manifest completeness (push) Has been cancelled
CI / Install all modules with --test-enable (push) Has been cancelled

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:
metatroncubeswdev 2026-09-27 09:43:28 -04:00
parent a4d3f57f39
commit 997c87737f
2 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,7 @@ that applies to the community_* product modules.
], ],
'web.assets_frontend': [ 'web.assets_frontend': [
'tncsc_deployment/static/src/scss/login_theme.scss', 'tncsc_deployment/static/src/scss/login_theme.scss',
'tncsc_deployment/static/src/scss/website_navigation.scss',
], ],
'web.assets_backend': [ 'web.assets_backend': [
'tncsc_deployment/static/src/scss/tncsc_backend_theme.scss', 'tncsc_deployment/static/src/scss/tncsc_backend_theme.scss',

View File

@ -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;
}