From 8fa5c21b38e436731703279f226e0ab64c8a8d14 Mon Sep 17 00:00:00 2001 From: rolandojduartem <rolando@vauxoo.com> Date: Tue, 6 Aug 2024 14:06:43 +0000 Subject: [PATCH] [FIX] website_google_tag_manager: fix hidden menu behavior with tag manager Adding script before the wrapwrap element affects style [1] and hide the nav bar behind of the main menu, so it is required adding it after the wrapwrap element, the same way as [2] does it. Reference: - [1] https://github.com/odoo/odoo/blob/32a07bf4/addons/website/static/src/scss/website.scss#L200 - [2] https://github.com/odoo/odoo/blob/32a07bf4/addons/website/views/website_templates.xml#L151 --- website_google_tag_manager/views/website_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_google_tag_manager/views/website_templates.xml b/website_google_tag_manager/views/website_templates.xml index 33fb2b60a1..0db7633074 100644 --- a/website_google_tag_manager/views/website_templates.xml +++ b/website_google_tag_manager/views/website_templates.xml @@ -2,7 +2,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> <odoo> <template id="layout" inherit_id="website.layout"> - <xpath expr="//div[@id='wrapwrap']" position="before"> + <xpath expr="//div[@id='wrapwrap']" position="after"> <t t-if="website and website.google_tag_manager_key"> <!-- Google Tag Manager (noscript) --> <noscript>