offcanvas does not close automatically - Forum | JoomShaper
Solved Helix Framework

offcanvas does not close automatically

Asked by pizzoferro 4 years ago Last activity 4 years ago

Good morning,
in this onepage website I have only one page and the links are of the type: #contact, etc.
How can I make the offcanvas panel close automatically?
website: nauticadelena.it
Video Recording: http://e.pc.cd/QggotalK

Accepted answer

Marked as the solution
Ofi Khan Staff

Hello pizzoferro

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup with you before sharing.

Best regards

5 more replies

pizzoferro Asked this

Thanks for the reply, in "hidden content" a Super Admin access
Thanks

Ofi Khan Staff

Please share the administrator URL to investigate the issue.

pizzoferro Asked this

sorry
nauticadelena.it

I thought you could see from the video I had attached!

Ofi Khan Staff

Sorry, it is beyond our support. We do not provide customization support. Please find a way by yourself.

pizzoferro Asked this

I really don't understand why !!
If the links are from internal pages, it works, if the links are anchors it doesn't work.
However I found by myself (in my first search in the forum I had not found!)
At this link: https://archive.joomshaper.com/forums/one-page-website-helix-ultimate#reply-164955
And this is the code to insert:

jQuery(function($) { 
$('.close-offcanvas, .offcanvas-overlay, .offcanvas-inner ul > li:not(.no-scroll) > a').on('click', function() {
        $('body').removeClass('offcanvas-active');
    });
});

Your answer is truly undeniable!

Log in to reply.