我使用了标记编辑器并通过Insert Media插入了一个图像,例如,
<img src="path/saint-lary-piste-map.jpg" alt="saint-lary-piste-map" width="2084" height="1288" class="aligncenter size-medium wp-image-2337" />
<img src="path/Ax-les-Thermes-piste-map.jpg" alt="Ax-les-Thermes-piste-map" width="2000" height="1340" class="aligncenter size-full wp-image-2334" />但是这些图像是不可点击的。要放大它们,我必须右击图像,然后单击Open Images in New Tab.
我安装了灯箱插件。因此,如果图片是可点击的,用户可以点击放大弹出窗口中的图像。我怎样才能做到这一点?
我使用查看了我以前的文章。有可点击的。这里是一个例子,HTML源代码。
<a href="http://sparkandshine.net/wordpress/wp-content/uploads/2014/11/image5.png" data-rel="lightbox-2" title=""><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="image" src="http://sparkandshine.net/wordpress/wp-content/uploads/2014/11/image_thumb5.png" width="483" height="391"></a>发布于 2017-02-06 17:50:59
使用“插入媒体”按钮时,需要将附件详细信息中的链接设置为媒体文件。
在右下角的以下图片中可以看到这一点:

https://wordpress.stackexchange.com/questions/255414
复制相似问题