Jump to content

Category Sub Menus Not Showing when Parent Clicked


Recommended Posts

I have modified my "blockcategories.tpl" to add some custom links. I have actually removed the categories/products links from this menu and just have my own custom links. I have also added some sub-menu items.

 

When I click on a parent menu it does not drop down the sub-menu items. Only when I click the "plus" sign beside it do I get the sub-menu items to show.

 

Also, when I click on one of the sub menu links, it then collapses the sub-menu tree and you can only see the parent menu item again.

 

This is the code I now have in my .tpl file -

 

<div id="categories_block_left" class="block">

<h4>{l s='' mod='blockcategories'}</h4>

<div class="block_content">

 

<ul class="tree {if $isDhtml}dhtml{/if}">

 

<li class="submenu"><a href="#">Drop-down</a>

<ul>

<li><a href="#">Sub-item 1</a></li>

<li><a href="#">Sub-item 2</a></li>

</ul>

</li>

</ul>

{* Javascript moved here to fix bug #PSCFI-151 *}

<script type="text/javascript">

// <![CDATA[

// we hide the tree only if JavaScript is activated

$('div#categories_block_left ul.dhtml').hide();

// ]]>

</script>

</div>

</div>

 

My site is here - http://www.sdmxc.net/prestashop2/

 

I would like for the sub-menu items to show if the parent is selected, and for them to stay showing when one of them is selected.

 

Does anyone know how I can fix this?

 

Thanks...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...