在Magento的类别页面中,默认设置为三列,三行为一行。
当我删除左栏时,它在左侧边栏中显示为空白,并且产品的内容不会是自动宽度。所以我需要更改CSS文件,以使页面看起来很好。
我是Magento的新手,问题是,这是最好的做法,还是有其他方法可以做到这一点?
提前致谢!
答案 0 :(得分:1)
不要编辑默认布局,而是创建另一个页面模板(即2columns.phtml),然后将其添加到page.xml中,并为新布局添加css。
要更改默认布局,请打开:
/app/design/frontend/default/modern/layout/page.xml
在第35行或附近,编辑以下块:
<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
更改为
<block type="page/html" name="root" output="toHtml" template="page/2columns-right.phtml">
然后相应地添加你的css。