Jump to content

如何加长featured products模块的产品列数?


leobenson

Recommended Posts

1. 备份后修改/modules/homefeatured/homefeatured.tpl,将下面:

           {assign var='nbItemsPerLine' value=4}




修改为:

           {assign var='nbItemsPerLine' value=6}




2. 给<h4>加个class,譬如class="longHeaderBg"

3. 备份后修改global.css,在最后加上:

.longHeaderBg { background: url("../img/block_header_large_long.gif") no-repeat left top transparent}




4. 制作名称为block_header_large_long.gif的背景图片,并copy到主题目录下的img目录里。

5. 清空smarty cache,测试。

p.s.: 如果出现布局混乱,则需要修改global.css里对应homefeatured模块的代码。

Link to comment
Share on other sites

貌似没有效果~
我也觉得应该是homefeatured.tpl 文件中 的

{assign var='nbItemsPerLine' value=6} 


就能控制 但是改完后 确是这样

觉得是没有控制到产品的排列 控制的是featured products背景的排列

23495_384vr74XIsAmaKTUMCya_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...