@mphker
Go to file:
oc-content/themes/zara/js/global.js
Find code:
// 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>'
});
}
});
And remove it.
Then go to file:
oc-content/themes/zara/inc.category.php
Find line:
<?php if(osc_is_home_page()) { ?>href="#ct<?php echo osc_category_id(); ?>"<?php } else { ?>href="<?php echo osc_search_url($search_params); ?>"<?php } ?>
And replace it with:
href="<?php echo osc_search_url($search_params); ?>"
This will disable fancybox of subcategories on homepage.