我刚开发了一个带有ng画廊插件的wordpress网站。我想要得到图像alt标签,并添加新的标题属性到图像标签。这是我的密码。
<div id="ngg-slideshow-1-6-1" class="ngg-slideshow" style="height:515px;width:576px;">
<img src="http://www.sweetpassion.com.au/wp-content/gallery/homepage/sydney-royal-easter-show-2014-master-class-competition.jpg" style="height: 515px; width: 386px; position: absolute; top: 0px; left: 0px; display: none; z-index: 10; opacity: 0;">我在ng图片库中添加了alt和描述,end.But没有显示在主页中的alt属性。
目前只显示src &样式属性。
如何将Alt和Title属性添加到上述代码中。
致谢和问候
发布于 2015-09-08 17:38:24
Nextgen库允许您创建自定义模板。
1.在“活动”主题中,创建名为: nggallery的文件夹。
2.将gallery.php从:/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view复制到步骤1中创建的nggallery文件夹中。
3.在nggallery文件夹中,将gallery.php重命名为gallery-mytemplate.php,并根据需要对其进行修改,以便显示alt文本和属性。
4.使用下面的短代码,它告诉Nextgen使用自定义模板而不是默认的[nggallery id=1 template=mytemplate]显示库
https://stackoverflow.com/questions/32439129
复制相似问题