Post by opencartzu » Thu May 02, 2019 7:23 pm

Hello, I want to insert a code immediately after <body> (at the beginning of the body of the page) and I do not know how to do it ... Can someone help me? I have tried from the header.tpl file but I can not insert it immediately after the <body> tag. I mention that I use opencart 3.0 (the fastor theme).
Thanks in advance

Newbie

Posts

Joined
Sun Jul 09, 2017 11:48 am

Post by dparakhiya » Thu May 02, 2019 8:00 pm

opencartzu wrote:
Thu May 02, 2019 7:23 pm
I have tried from the header.tpl file but I can not insert it immediately after the <body> tag. I mention that I use opencart 3.0 (the fastor theme).
Thanks in advance
There is no header.tpl file in Opencart 3.x .... is header.twig file

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by DigitCart » Thu May 02, 2019 8:33 pm

Hi
but I can not insert it immediately after the <body> tag
Do you see your code somewhere else? maybe some elements are added via Javascript, vqmod, ocmod or event system after the <body> tag.
There is no header.tpl file in Opencart 3.x .... is header.twig file
I see the Fastor theme still has tpl files on OpenCart 3.

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by opencartzu » Thu May 02, 2019 10:37 pm

Thanks for the answer .. it's true what you say ... why I need to insert a javascript code for google tag manager to be used in dynamic remarketing:

Code: Select all

<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WV78RK4"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
How did I do? I attach the header.tpl file (at line 370 I entered the code) ...

Newbie

Posts

Joined
Sun Jul 09, 2017 11:48 am
Who is online

Users browsing this forum: No registered users and 19 guests