我是个新手,但我想用this idea 在Wordpress站点上嵌入的Vimeo剪辑中禁用正向搜索
我的职能。我添加了php
function frogaloop_scripts() {
wp_register_script(\'snippet\', \'https://siteurl/wp-content/themes/themename/js/snippet.js\');
wp_register_script(\'frogaloop\',\'https://f.vimeocdn.com/js/froogaloop2.min.js\');
}
add_action( \'wp_enqueue_scripts\', \'frogaloop_scripts\' );
在一个嵌入视频的页面上<iframe id="video1" src="https://player.vimeo.com/video/xxxxx?api=1&player_id=video1" width="630" height="354" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
其中“video1”与codepen示例中的iframe标签匹配。当我加载页面源代码时,我甚至看不到frogaloop被列出,所以我不确定排队是否发生了。。。
这件事我哪里做错了?