Hide BROWSE BOOKS – Category


When i creating my new site there was a need to remove browse books and its category from front page.so i tried lot of times and success with it.so if any one needs please use at your own risk

You can find the file from this path

app\design\frontend\default\jm_booktemplate\catal og\layer\view.phtml

Normally i am renaming it as view_d.phtml and using it copy as view.phtml because its save me to restore the site if anything goes wrong.

<?php if($this->canShowOptions()): ?>
<div class="narrow-by">

<dl >
<?php $_filters = $this->getFilters() ?>
<?php foreach ($_filters as $_filter): ?>
<?php if($_filter->getItemsCount()): ?>
<?php if($_filter->getName() != "Category"){ ?>
<dt><?php echo $this->__($_filter->getName()) ?></dt>
<?php echo $_filter->getHtml() ?>
<?php } endif; ?>
<?php endforeach; ?>
<script type="text/javascript">decorateDataList(‘narrow-by-list’)</script>
<?php endif; ?>

It will remain Genres in front page.so if any one need to keep only Genres this should help.

If any one knows how to display it in products pages let me also know.using this fix it will gone from every page.


5 answers

Profile photo of Sherlock 0.00 $tone November 19, 2013

Hi mate,

Thank for useful post, btw if you want to remove filter from homepage only, keep it remain on product pages you can open the layout file app\design\frontend\default\jm_book\layout\page.xm l at around line number 246 you remove this block tag

HTML Code:

  <reference name="left">
            <block type="catalog/layer_view" name="catalog.rightshopby" before="-" template="catalog/layer/view.phtml"/>  
Profile photo of Sherlock 0.00 $tone November 23, 2013


I tried with your Post.but it will hide the Genres attribute section.what i mean is remove those filtering option from home page and retain only genre attribute.


if you want to hide a product attribute then in back-end of the attributes you can set the "Use In Layered Navigation" to No

Profile photo of Jayasri Ruwanpura 0.00 $tone November 25, 2013


I mention there is not to remove all the left column items.using your fix it remove most of left items.i need to remain the Genre and remove the others.so thats why i told your fix is removing all.from attribs i can manage genre so no problem with that.



Please login or Register to Submit Answer

Written By