Add script

Posted in: Newspaper
Post count: 111

Hi there,

I need to add this code on every page just before the body tag.

<script async defer src="https://widget.getyourguide.com/v2/widget.js"></script>

I placed the code in the theme panel analytics/js code. That works for the desktop, but not for the mobile theme. Where do I place the code for the mobile version of the website?

Post count: 35449

Hi,

For theme mobile you need to add the code right in theme file, go in Appearance> Editor in the file go in mobile> header https://www.screencast.com/t/uodLodoGSBb

Thank you.

Post count: 111

But wouldn’t that code be overwritten on a them update? Or can I also use the child theme for this?

Post count: 35449

Hi,

Unfortunately on update you need to set the code again, this is for the moment the only way, unfortunately isn’t working with child.
Sorry for the inconvenience.

Thank you for your understanding.

Post count: 111

Ah that’s a shame. Are you planning on adding a analityics/js code area to the mobile theme because you say for the moment?

Post count: 35449

Hi,

I’ve just added this one on the featured list.

Thank you for your understanding.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.