Disabling the hover menu for categories

Disabling the hover menu for categories

Postby chaiavi » Tue Jun 01, 2010 8:28 am

When I hover over the "categories" menu - a sub menu opens, is there a way to disable it altogether?

Or is there a way to enable it to go only one generation down instead of opening it down to all of its descendants?



Thanks,
Avi.
chaiavi

 
Posts: 122
Joined: Sun May 09, 2010 12:49 pm

Re: Disabling the hover menu for categories

Postby admin » Tue Jun 01, 2010 10:53 am

Hi,

You can stop the subcategories appearing by changing the following to only show the top level categories.

In sidebar-left.tpl find the following code:

Code: Select all
<?php if($this->nestedcats): ?>
<!-- Categories Block Starts -->
<div class="block">
<!-- Heading Starts -->
   <div class="block-top"><?php eprint(LangCategories); ?></div>
<!-- Heading Ends -->
<!-- Content Starts -->
   <div class="block-bottom">
   <!-- Items Starts -->
      <div id="nested">
         <?php echo $this->nestedcats; ?>
      </div>
   <!-- Items Ends -->
   </div>
<!-- Content Ends -->
</div>
<!-- Categories Block Ends -->
<?php endif; ?>


and replace it with:

Code: Select all
<?php if($this->cats): ?>
<!-- categories Block Starts -->
<div class="block">
   <div class="block-top"><?php eprint(LangCategories); ?></div>
   <div class="block-bottom">
      <ul>
         <?php foreach($this->cats as $cat): ?>
         <li><a href="<?php echo $cat->url; ?>"><?php echo $cat->name; ?></a></li>
         <?php endforeach; ?>
      </ul>
   </div>
</div>
<!-- categories Block Ends -->
<?php endif; ?>
User avatar
admin
Site Admin
 
Posts: 462
Joined: Sun Nov 22, 2009 7:24 pm

Re: Disabling the hover menu for categories

Postby chaiavi » Sun Jun 06, 2010 11:57 am

Thank you very much.


That's exactly what I needed.



Avi.
chaiavi

 
Posts: 122
Joined: Sun May 09, 2010 12:49 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron