Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Custom code at <body>

More
8 years 11 months ago #46308 by ClaudioRomeo
In the Custom code window I can write code that will be inserted before the </body> tag.
How can I insert the code just after the <body> tag? In other words, at the beginning of the <body></body> section?

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #46309 by ced1870
Replied by ced1870 on topic Custom code at <body>
Hi
you can use a "custom code" block at the beginning of your template :)
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #46310 by ClaudioRomeo
Replied by ClaudioRomeo on topic Custom code at <body>
OK, this works, but...
I need to insert the Google Tag Manager snippet, that has to be inserted just after the <body> tag without any code before it.
If I use a custom code block, Template Creator insert its code inside a wrapper and a block.
If so, the Google check fails, telling that the snippet is in a wrong position.
Maybe I'm getting confused?
Is there a workaround for this impasse?

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #46311 by ced1870
Replied by ced1870 on topic Custom code at <body>
that's right. Actually I don't have any solution for this ...the only remaining solution would be to use a plugin and inject the code with onAfterRender event

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #46312 by ClaudioRomeo
Replied by ClaudioRomeo on topic Custom code at <body>
Oops!
This sounds bad...
So, we all are waiting for the onAfterRender CK plugin.
;)

Counselor for better people in a better company

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #46313 by ced1870
Replied by ced1870 on topic Custom code at <body>
I'm not telling that I will do a such plugin ... this was just an idea for you ;)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.202 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1675 guests and one member online