Hello,
I would like to add a custom js code in mobile theme.
The js tag is:
<script type="text/javascript" class="teads" async="true" src="//a.teads.tv/page/xxxxxx/tag"></script>
Your guidance says: ”
Add custom JavaScript easly, using this editor. Please do not include the <script> </script> tags.”
How will I transform this script accordingly?
Thanks a lot.
-
This topic was modified 6 years by
bo.
Hi,
As I can see you do not want to use a custom js you want to include one, for this you need to set that code in the head or body of website, you can set the code in one of 2 places -> https://i.imgur.com/piAAx3Z.png thepend when the code need to be load.
Thank you!
Hello again Calin,
unfortunately I see that the only way that Teads code can be rendered and for the ads to be shown on mobile is only when mobile theme is deactivated.
In desktop it’s working fine. If I globally include the code in analytics/js script as advised shouldn’t it also be rendered in mobile theme too?
For your information this code is not an ad unit; it’s generating all ad slots in various in-article placements. I tried to add it as am ad unit in mobile ads but it doesn’t work.
Any help would be appreciated.
Thanks in regards,
Chris
Hi b_chris21,
If you set the code in theme panel, then it will be set between <head></head> tags, where exactly need to be set this code? normal the code set between <head></head> tags is displaying in mobile theme too, but maybe this code need to be set in a specific place.
Thank you!
Hi,
Then set the code in theme panel> analytics/js codes, here -> https://i.imgur.com/EPo4Xl3.png
Thank you!