Categories help

This topic has been marked as not resolved.

Hello…

I want “clothing” section to be opened when I click on it.

I just want sub-category to be opened if I click ” + ” button.

http://i.imgur.com/Q6DMONT.jpg

Thanks…

January 16, 2017 at 11:11 pm #55506

Hi,

This should be the default behavior. What is the device you are testing with?

BR,
ThemeBurn team

January 20, 2017 at 12:28 am #55620

Mobile lg g2, g3 and htc.

January 20, 2017 at 11:17 am #55648

Hi,

You should change the mobile menu logic a bit:

1) Open catalog/view/theme/BurnEngine/javascript/common.js

2) Find this code block:

    if(tbUtils.is_touch) {
        $body
            .on('click', function(e) {
                $('.dropdown').removeClass('tb_hovered');
                $('.tb_toggle').removeClass('tb_active');
            })
            .on('click', '.dropdown > a', function(e) {
                if ($(this).siblings('.dropdown-menu,ul')[0].getBoundingClientRect().width < 1) {
                    $('.dropdown').removeClass('tb_hovered');
                    $(this).parents('.dropdown').addClass('tb_hovered');
                    $(this).parent().find('> .tb_toggle').addClass('tb_active');
                }
                else {
                    $(this).parent().removeClass('tb_hovered');
                    $(this).parent().find('> .tb_toggle').removeClass('tb_active');
                    window.location = $(this).attr('href');
                }

                return false;
            });
    }

3) Replace it with:

    $('#wrapper')
        .on('click', '.dropdown > a', function(e) {
            if (tbUtils.is_touch && !$(this).next('.dropdown-menu').is(':visible') && !$(this).parent().find('> .tb_toggle').is(':visible')) {
                e.preventDefault();
            }
        })
        .find('.tb_widget_cart > .nav').each(function() {
            var $nav = $(this),
                url  = window.location.href;

            $nav.find('> .heading a').one('mouseenter', function() {
                $nav
                    .addClass('active')
                    .load('index.php?route=common/cart/info .nav > *')
                    .on('mouseleave', function() {
                        $(this).removeClass('active');
                    });
            });
        });

BR,
ThemeBurn team

January 25, 2017 at 3:16 pm #55826
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.