crpereyra1 Posted January 31, 2015 Share Posted January 31, 2015 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" Link to comment Share on other sites More sharing options...
NemoPS Posted January 31, 2015 Share Posted January 31, 2015 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 More sharing options...
crpereyra1 Posted February 6, 2015 Author Share Posted February 6, 2015 this didn't work for me. I tried changing all the hrefs i found in the blocktopmenu.php but that didn't change the menu item href. Link to comment Share on other sites More sharing options...
NemoPS Posted February 7, 2015 Share Posted February 7, 2015 There are several entries, are you sure you're modifying the correct one? Also, make sure you clear your cache Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now