Jump to content

To disable Top Category Links - but class is missing on mobile


Recommended Posts

Hi all,


I am trying to remove the links for category pages on the top menu bar. I have used this code to disable, and it works well for the class sf-with-ul. I am using below code.

$(document).ready(function(){ $('.sf-with-ul').bind('click', false); }); 

However it seems that there is no Class on the mobile theme, which is why this command is ignored.

So seems that there is a problem somewhere in the. What is setting the class for the mobile theme top menu (like the one called sf-with-ul) for the desktop. When I minimize the window and inspect, I get no name. It just says a 470x40, where the larger says a.sf-with-ul?! 

So I trust I need to go and find some missing code somewhere? But where? 

Hope someone can help.

Br. Brian1693070763_Skrmbillede2021-06-03kl_15_38_07.png.ef2d5fe0b68f1e3560cf7171729eaa52.png


Skærmbillede 2021-06-03 kl. 15.37.28.png

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More