Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Not Show Sub Categories Drop Down?? 
 
d4ufnky1
Jr. Member
 
Total Posts:  27
Joined:  2008-08-22
 

Hi,

I’ve seen an answer for this question in the forum already however my navbar is on the left and the code to replace doesn’t seem to be the same.

I am looking to stop showing the sub categories from showing when you hover over a category.

in /app/design/frontend/default/my_template_name/template/catalog/navigation/left.phtml the code is as follows:

<?php
/**
 * Category left navigation
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<?php $_categories
=$this->getCurrentChildCategories() ?>
<?php 
if($_categories->count()): ?>
<div class="box layered-nav">
    <
div class="head">
        <
h3><?php echo $this->__('Browse By'?></h3>
    </
div>
    <
div class="border-creator">
        <
div class="narrow-by">
            <
dl id="narrow-by-list">
                <
dt><?php echo $this->__('Category'?></dt>
                <
dd>
                    <
ol>
                    
<?php foreach ($_categories as $_category): ?>
                        <?php 
if($_category->getIsActive()): ?>
                        
<li>
                            <
a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="active"<?php endif ?>><?php echo $this->htmlEscape($_category->getName()) ?></a> (<?php echo $_category->getProductCount() ?>)
                        </
li>
                        
<?php endif; ?>
                    <?php 
endforeach ?>
                    
</ol>
                </
dd>
            </
dl><script type="text/javascript">decorateDataList('narrow-by-list')</script>
        
</div>
    </
div>
</
div>
<?php endif; ?>
<!-- [ends] .browse-by // -->

Is this the right file? and what would need changing to solve this?

Many Thanks
D4

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top