video - Prestashop 1.7 主页上的视频自动播放
问题描述
我无法在我的主页上自动播放我的视频 - 使用带有以下代码的免费 html 框,当我尝试使用 youtube 代码保存它时,文本框给我错误 505。
<iframe width="1110" height="624" src="https://www.youtube.com/embed/aWyB2_8N4M8?controls=0" frameborder="0" allow="accelerometer; autoplay=1; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"></iframe>
这也不起作用
<iframe width="1110" height="624" src="https://www.youtube.com/embed/aWyB2_8N4M8?autoplay=1&cc_load_policy=1" frameborder="0"></iframe>
Prestashop 1.7 - 页面:http ://warhouse.cz/
谢谢你的帮助
解决方案
如果您有以下设置,请检查 Shop Parameters -> General:
“允许在 HTML 字段上使用 iframe”设置为是;
“使用 HTMLPurifier 库”设置为否。
推荐阅读
- r - 在R中的data.frame中提取和绑定类似命名的变量
- android - android房间更新或后端修改时删除项目
- amazon-web-services - 是否可以使用 CodeDeploy 来使用以前部署的本地缓存修订?
- c# - 在实体框架数据库的不同控制器中获取 MemoryCache
- python - 如何确保捕获组超过 5 个字符?
- python - 为什么python装饰器会创建一个返回“None”的函数?
- mysql - MySQL:从 Boolean 到 Tinyint(1) 再返回
- flutter - Flutter 将自定义小部件推送到布局之外
- ruby-on-rails - Rails 部分本地未通过
- python - Pyspark:根据条件修改列