Skip to content

Commit

Permalink
[FIX] website_google_tag_manager: fix hidden menu behavior with tag m…
Browse files Browse the repository at this point in the history
…anager

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
  • Loading branch information
rolandojduartem committed Aug 6, 2024
1 parent 3b0bc45 commit 8fa5c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_google_tag_manager/views/website_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8fa5c21

Please sign in to comment.