featherlight iframe的多个实例 - 不触发

问题描述 投票:0回答:1

在Kiosk项目上解决问题并使用Featherlight iframe。这是一个名人堂项目 - 如果加载1080px宽,1920px高(Chrome开发者工具效果很好,但必须加载新的(清除缓存),因为我们正在为分辨率检查创建一个cookie来测试),然后项目加载自助服务终端版本主题。

http://dev.demo38.com/owu/hall-of-fame/

我们列出了名人堂成员,从WordPress自定义帖子类型中提取,并使用Isotope进行过滤。第一次在名人堂名单中的Featherlight灯箱中打开名人堂成员的信息,它的效果很好,但是,接下来的尝试都不会激发。没有任何控制台错误。

有关让Featherlight与多个实例一起工作的想法吗?

这是WordPress循环中的代码

<a class="anti-link-scroll" href="<?php the_permalink($post_object->ID); ?>" data-featherlight="iframe" data-featherlight-iframe-height="1080">

                    <span class="full-name"><span class="name"><?php the_field('last_name'); ?></span>, <?php the_field('first_name'); ?></span>

                </a>

感谢您的任何见解。

wordpress loops multiple-instances featherlight.js
1个回答
0
投票

Featherlight处理多个实例没有问题。例如,gallery示例有两个独立的画廊。

一如既往地在尝试理解问题时,制作一个最小的例子会有很大帮助。

© www.soinside.com 2019 - 2024. All rights reserved.