简体   繁体   English

将自定义JavaScript添加到单个Weebly产品页面

[英]Adding Custom JavaScript into Individual Weebly product pages

I am trying to add an Age verification code to only certain categories on my Weebly store but can't figure out how to implement it on only certain pages. 我试图将“年龄验证”代码仅添加到Weebly商店中的某些类别,但无法弄清楚如何仅在某些页面上实施该代码。 I tried adding an "Embedded element" to the pages but the script doesn't run. 我尝试在页面上添加“嵌入元素”,但脚本无法运行。 the code I am trying to get to work is: 我试图开始工作的代码是:

'<script    type="text/javascript"  src="https://custom.ageverify.co/shopshag/av.js"></script>'

any help is appreciated! 任何帮助表示赞赏!

An easy way to accomplish this is with the site http://age-verify.com . 一个简单的方法是使用http://age-verify.com网站。 They provide the code snippet and there is a free plan. 他们提供代码段,并且有免费计划。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM