• Resolved alexschneider_ru

    (@alexschneider_ru)


    Hi,
    I am using Element Pack Off-canvas widget and I noticed that if anchor link is inserted into off-canvas content panel is not closing after clicking on link. The example is my website https://ecoforum.expert (off-canvas appears for tablet/mobile screen widths). This is screencast of the problem: https://c2n.me/49zdWw1
    I guess there is some JS to insert for fixing this but it is beyound of my scope of programming. If somebody would be kind enough to provide me this fix?
    Thanks on advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Faridul Islam

    (@mohammaadfarid)

    Hello @alexschneider_ru ,

    Thank you for your message. Right now we don’t have this kind of functionality. If possible we will add this feature in the future.

    Best Regards
    Faridul Islam

    Thread Starter alexschneider_ru

    (@alexschneider_ru)

    There is same problem in YooTheme off-canvas and they suggest a simple JS code to fix it https://yootheme.com/support/question/119714
    Is it possible to modify their code according to Element Pack styles/ids? I think it would not be very hard…

    Thread Starter alexschneider_ru

    (@alexschneider_ru)

    Problem is solved

    
        function offCanvasHide() {
            jQuery('.elementor-nav-menu--main .elementor-item').on('click', function() {
                jQuery('.bdt-offcanvas').hide();
            });
        }
    
        document.addEventListener("DOMContentLoaded", offCanvasHide());
        offCanvasHide();
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make off-canvas close after click on anchor link?’ is closed to new replies.