Your account expired support, please renew to get your support.

Home Forums Themes Support Pangja Vertical Menu defaults to closed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8411
    jeffnorberg
    Support Expired

    I’d like the vertical menu in the header to be closed upon page load and need to be clicked to expand. How can I go about arranging this? Thank you : )

    Attachments:
    You must be logged in to view attached files.
    #8415

    Hi,
    Thanks for contacting us and choosing our product!
    About this issue you can close Vertical Menu on Homepage by go to: wp-content/themes/pangja/assets/js then open file haru-main.js
    Remove the code from line 484 to 486:

    if ( $('body').hasClass('home') || $('body').hasClass('vertical-menu') )  {
       $('#vertical-menu-wrap').show();
    }

    https://prnt.sc/10nng8q
    Change the code from line 618 to 627 from:

    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();
    }

    to

    $(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();
        }
    });

    Maybe you need clear cache to see changes.
    Hope this helps!

    *****
    Regards,
    HaruTheme

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.