WordPress / PHP - 想要停止链接/灯箱


Wordpress / PHP - want to stop link / lightbox

基本上,试图修改主题以适应。我有一个 PHP 函数,我似乎无法对其进行适当的修改以阻止它在悬停时创建手形光标,以及在单击时阻止它作为灯箱样式图库打开图像。我试图让它基本上什么都不做,但让观众滚动浏览图像。

<?php 
    $project1Images = explode( ',', $project1Images );
    $project1ImagesLinks = explode( ',', $project1ImagesLinks );
    for ($i=0; $i < count($project1Images); $i++) { 
        $thumb_id       = CoSy_getImageId($project1Images[$i]);
        $thumb_obj      = wp_get_attachment_image_src($thumb_id, 'full');
        $thumb_width    = $thumb_obj[1];
        $thumb_height   = $thumb_obj[2];
        echo '<a href="'. esc_url($project1ImagesLinks[$i]) .'" rel="gallery">';
        echo '<img class="lazy" data-original="'. esc_url($project1Images[$i]) .'" alt="" data-width="'. esc_attr($thumb_width) .'" data-height="'. esc_attr($thumb_height) .'" >';
        echo '</a>';
    }
    ?>

提前感谢!!

附言 - 我对阅读代码有很好的理解,但无论如何都不是编码员。

谢谢。

要在悬停时删除手形光标并阻止其将图像作为灯箱打开,您需要删除

echo '<a href="'. esc_url($project1ImagesLinks[$i]) .'" rel="gallery">';

echo '</a>';