Jump to content

Disable click on custom category main item


Recommended Posts

I have created a new cms category call it about, inside of about i have several sub item.  Everything shows up correctly.  However,  I don't want the main category go be clickable.  If you click it, it takes you to a page with a list of the sub pages.  I would like to get rid of this by disabling the click on the main category.  I am looking for the place where I can set the href attribute to # if the item has sub items.   Any help would be appreciated.

 

In the picture above I would like to disable click on "About"

post-796887-0-86870900-1422683262_thumb.png

Link to comment
Share on other sites

Is that the default top horizontal menu? If so, try modifying blocktopmenu,php

 

$this->_menu .= '<a href="'.Tools::HtmlEntitiesUTF8($cat->getLink()).'">'.$category['name'].'</a>';

 

Get rid of the href there, in the getCMSMenuItems method, around line 649 on mine (1.6.0.8)

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...