Avada Forums Community Forum How to use Off canvas menu with anchor link Reply To: How to use Off canvas menu with anchor link

scsedel
Participant
Post count: 1

I found this working

jQuery(document).ready( function($) {

    $(document).on('click', '.awb-off-canvas-wrap a', function() {

        window.awbOffCanvas.close_off_canvas("<n>");
    });
});

where <n> is the id of the off canvas post.
You can get this from inspecting code too. The offcanvas as an id like awb-oc-<n>.
My routine closes the off canvas for each navigation item. You have to fit it for your needs.