发新话题
打印

[原创] ContentGallery让轻松实现CMS特效

ContentGallery让轻松实现CMS特效

很多CMS wordpress主题都有置顶Featured Content Gallery特效,即切换展示精品文章标题和摘录。如Massive Theme。
我的一篇文章有介绍: wordpress CMS主题推荐:Massive News
我做了一个测试页面,大家可以预览:
http://www.yanjiecao.com/ceshi/
现在我推荐一款插件,Content Gallery ,它由一个外国人开发的wordpresss插件。只要在主题页面.php文件里加入一段代码,即可让你普通的主题轻松实现这个效果。

安装使用步骤:

1.Content Gallery 下载:作者页面下载 本站下载

2.将插件解压上传到‘/wp-content/plugins/’中并激活。

3.然后再wordpress管理后台中的ptions →Featured Content Gallery 中添加你想展示文章的标题、图片、链接和描述。

4.将下面这段代码加到你想实现这个效果的任何地方(修改主题.php文件):
<?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>

5.你还可以在此插件的CSS文件夹里修改jd.gallery.css文件,调整展示内容的大小:
#myGallery, #myGallerySet, #flickrGallery
{
width: 460px; /* this is the width of your gallery */
height: 345px; /* this is the height of your gallery */
z-index:5;
border: 1px solid #000;
}

如果还有疑问,可以参照作者的英文说明:http://www.wpelements.com/the-featured-content-gallery-plugin/
本帖最近评分记录
沿阶草堂
www.yanjiecao.com

TOP

沿阶草堂
www.yanjiecao.com

TOP

感谢

TOP

发新话题