【问题标题】:Wordpress PrettyPhoto Gallery from link来自链接的 Wordpress PrettyPhoto Gallery
【发布时间】:2018-11-27 18:48:36
【问题描述】:

我想要一个可以打开漂亮照片库的链接。我正在使用带有 Visual Bakery 插件的 Wordpress 作为编辑器。

我发现如果我这样做......

<a class="prettyphoto" href="https://paradisocommunities.com/wp-content/uploads/2018/11/Heirloom-LegacyPointe32.jpg" data-rel="prettyPhoto[rel-17-696085417]">Link Text or Image</a>

...它将显示使用漂亮照片弹出窗口,但不会有画廊。如果您单击此页面上的 Inspire 按钮,您可以看到这项工作:https://paradisocommunities.com/model/the-heirloom/

有人知道如何将此链接设为图库吗?

Visual Composer 中图像网格库的简码是:

[vc_gallery type="image_grid" images="1017,1016,1015,1014,1013,1012,1011,1010" img_size="full"]

是否可以使用这些数字使其成为画廊或只是文件名?

【问题讨论】:

    标签: wordpress hyperlink image-gallery


    【解决方案1】:

    您应该能够通过向链接添加一个属性来实现这一点。

    rel="prettyPhoto[pp_gal]"
    

    这是来自他们官方支持论坛上的讨论:

    https://wordpress.org/support/topic/go-to-prev-and-next-photo-in-lightbox-view/#post-4528237

    【讨论】:

    • 这无济于事,因为它不知道要加载哪些图像(我认为)。我已经用这个 rel="prettyPhoto[rel-17-95584683]" 进行了尝试,这是对我在另一个页面上创建的画廊的引用:paradisocommunities.com/the-heirloom-gallery。问题是它不知道它希望我将哪些图像加载到 PrettyPhoto 中,它只是给了我链接中的第一个。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多