Jump to content

How to disable "Main category" from left menu?


Tomi14

Recommended Posts

Hi, you must edit module tpl file in your theme or in main modules catalog, path should be like:

../modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl

Change this:

<div class="block-categories">
  <ul class="category-top-menu">
      <li><a class="text-uppercase h6" href="{$categories.link nofilter}">{$categories.name}</a></li>
      <li>{categories nodes=$categories.children}</li>
  </ul>
</div>

to this:

<div class="block-categories">
  <ul class="category-top-menu">
    {if $categories.id != 2}
      <li><a class="text-uppercase h6" href="{$categories.link nofilter}">{$categories.name}</a></li>
    {/if}
      <li>{categories nodes=$categories.children}</li>
  </ul>
</div>

 

  • Like 1
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...