Magento Layered Navigation block. Move to center

 ̄綄美尐妖づ 提交于 2019-12-08 00:18:25

I managed to fix this (for anyone else who encounters this problem) by commenting out or deleting the below call in catelog.xml:

<reference name="left">
    <block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
</reference>

Then adding this line within the name="product_list" block just below.

<block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>

Then within list.phtml echo it like: <?php echo $this->getChildHtml('filter');?>

Could you please provide more information like in which package/theme you are doing this change and if that package/theme is also actually selected in the admin.

It could also be a caching issue, when its enabled. Have you tried flushing it in System > Cache management ?

Perhaps a bit of topic: but best practice is to always do XML layout changes via the local.xml file instead of directly in for example base/default XML files. But perhaps you already knew about this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!