Kunena Menu
Custom code at <body>
- ClaudioRomeo
- Topic Author
- Offline
- Platinum Member
-
8 years 11 months ago #46308
by ClaudioRomeo
Counselor for better people in a better company
Custom code at <body> was created 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?
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.
8 years 11 months ago #46309
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Custom code at <body>
Hi
you can use a "custom code" block at the beginning of your template
CEd
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.
- ClaudioRomeo
- Topic Author
- Offline
- Platinum Member
-
8 years 11 months ago #46310
by ClaudioRomeo
Counselor for better people in a better company
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?
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.
8 years 11 months ago #46311
by ced1870
Joomlack Webmaster and Developer
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.
- ClaudioRomeo
- Topic Author
- Offline
- Platinum Member
-
8 years 11 months ago #46312
by ClaudioRomeo
Counselor for better people in a better company
Replied by ClaudioRomeo on topic Custom code at <body>
Oops!
This sounds bad...
So, we all are waiting for the onAfterRender CK plugin.
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.
8 years 11 months ago #46313
by ced1870
Joomlack Webmaster and Developer
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.208 seconds





