Jump to content

Disable the link from a cms category page on the menu


Recommended Posts

Hello, i would like, if possible, that some one help me understand how can i disable the CMS Category page, so that when i click on it on the menu is won't open, just display its sub cms pages to access.

I add the a screenshot from the page i don't won't to open.

Thanks and my best regards

post-935928-0-61671000-1426645599_thumb.png

post-935928-0-50425600-1426645604_thumb.png

Link to comment
Share on other sites

 

Try this

in file

/themes/your_theme/css/modules/blocktopmenu/css/superfish-modified.css

Add this

.sf-menu > li:nth-child(3) {
    pointer-events: none;
}
nth-child(3) // 3 = link position in the horizontal menu list

 

Hello Ventura, thanks for the fast reply and the presented solution, unfortunately this solution stops what i want and what i don't want. It turns the multimedia link off but also turns the sub-menu off, so i can not have access to the drop menu from multimedia :/ 

The purpose, was to just disable the "a href" link of multimedia living the sub menu operational.

I found this CSS solution:

 

.sf-menu a.sf-with-ul {

  pointer-events:none; }
 
 
but unfortunately this also disables the menu products category page, because they use the same class a.sf-with-uf for the product category and cms category.
 
Do you have any other solutions that you can present to me? 
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...