Hi,
I read the forum and found this code if you want to to dis-able subcategory pop up on the home page.
// FANCYBOX - SUBCATEGORY OPEN ON HOMEPAGE
$(document).on('click', '.open-home-cat', function(e){
e.preventDefault();
if (!!$.prototype.fancybox) {
$.fancybox({
'padding': 0,
'width': 640,
'height': 320,
'autoSize': false,
'autoDimensions': false,
'wrapCSS': 'home-cat',
'content': '<div class="cat-tab">' + $('#ct' + $(this).attr('rel')).html() + '</div>'
});
}
});
I have more that 42 sub-categories in the JOB section for example and hence don't want the pop-up to appear. I want if a category is selected e.g JOBS is should take me straight to the sub-categories and not pop-up first then sub-categories.
I have commented the code above but when you do that main categories become dis-functional and don't take me to sub-categories when you click them, actually then don't take you anyway it's as if the links are disable.
How can i achieve what i want? should i delete it the code all together?