Home Forums Themes Support How to make Product Categories not auto open on Homepage

Tagged: 

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8322

    Hi all customer,

    If you are using Header like this demo: https://demo.harutheme.com/pangja/home-2/

    The Vertical Menu Product Categories will auto show on Homepage. You can disable it follow these steps:

     

    Step 1: Go to wp-content/themes/pangja/assets/js/ then open file haru-main.js
    Then go to line 484 to 486 and remove this code:
    if ( $('body').hasClass('home') || $('body').hasClass('vertical-menu') ) {
    $('#vertical-menu-wrap').show();
    }
    Step 2: go to line 618 to 627 and remove this code:
    if ( !$('body').hasClass('home') ) {
    $(document).on('click', function(e) {
    var container = $(".vertical-menu-wrap");
    if (!container.is(e.target) && container.has(e.target).length === 0) {
    $('#vertical-menu-wrap').hide();
    }
    });
    } else {
    $('#vertical-menu-wrap').show();
    }
    Step 3: Please clear cache to see changes!
    You can use this plugin for easy to manage files:
    Hope this helps and thanks for reading!
    *****
    Best regards,
    HaruTheme

     

    • This topic was modified 7 months, 1 week ago by admin.
    • This topic was modified 7 months, 1 week ago by admin.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.