This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

SarzzeR

  • ***
  • 22 posts
How to disable sub-category pop-up?
« on: September 16, 2016, 06:10:31 PM »
Hello,

My site will not be having sub-categories (only main categories), so how can I disable the subcategory pop-up menu?

Thank You.

*

MB Themes

Re: How to disable sub-category pop-up?
« Reply #1 on: September 16, 2016, 10:01:49 PM »
It is required to comment function in JS file... I will check it tomorrow.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

SarzzeR

  • ***
  • 22 posts
Re: How to disable sub-category pop-up?
« Reply #2 on: September 16, 2016, 10:56:55 PM »
It is required to comment function in JS file... I will check it tomorrow.
Thank You!

*

MB Themes

Re: How to disable sub-category pop-up?
« Reply #3 on: September 18, 2016, 05:14:22 PM »
@Sarzzer
Go to file:
oc-content/themes/zara/js/global.js

Find code:
Code: [Select]

  // 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/comment it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

SarzzeR

  • ***
  • 22 posts
Re: How to disable sub-category pop-up?
« Reply #4 on: September 18, 2016, 08:08:36 PM »
Thanks. The pop-up is disabled but now I need to change the categories URL address, where can I do that?

*

MB Themes

Re: How to disable sub-category pop-up?
« Reply #5 on: September 18, 2016, 09:59:29 PM »
@SarzzeR
This is not theme related question.
You need to check htaccess file and URL configuration on your osclass.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

SarzzeR

  • ***
  • 22 posts
Re: How to disable sub-category pop-up?
« Reply #6 on: September 18, 2016, 10:49:06 PM »
Well it is associated with the theme...

I have disabled fancybox but the URL stayed the same: www.site.com/#ct131 and www.site.com/search/category,131/sCompany,0

In with file I have to configure it? Thanks.

Marked as best answer by SarzzeR on September 18, 2016, 11:41:06 PM
*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

SarzzeR

  • ***
  • 22 posts
Re: How to disable sub-category pop-up?
« Reply #8 on: September 18, 2016, 11:40:47 PM »
Thank You. :)

*

MB Themes

Re: How to disable sub-category pop-up?
« Reply #9 on: September 19, 2016, 07:59:37 AM »
@Sarrez
Welcome ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots