• Resolved annettepixie

    (@annettepixie)


    Hi,

    The mobile dropdown menu is (largely) positioned offscreen. The culprit appears to be a javascript error thrown when you click on the hamburger menu :

    Uncaught TypeError: $(...).closest(...).offset() is undefined - traced to line 630 on header-footer-elementor/inc/js/frontend.js?ver=1.6.14:
    
    var sec_pos = $( '.elementor-element-' + id ).closest('.elementor-section').offset().left - $selector.offset().left;

    • This topic was modified 1 year, 8 months ago by annettepixie.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @annettepixie,

    Have you tried disabling all the plugins installed on your site and leave only Elementor and this plugin active? Just in case there’s a plugin that causes the issue.

    Also, please share your site URL, so we can check it from our end.

    Kind regards,
    Herman ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi,

    I am marking this thread as Resolved due to inactivity. Please start a new thread if there is anything else related to this plugin, we can help you with.

    Kind regards,
    Herman ??

    Hi there

    I know this is marked as resolved, just adding the solution for team and any user who encounters this error.

    So this is because of the fact the Elementor is now using Containers instead of Sections. The JavaScript code tries to find the parent section with class as elementor-section and got nothing because now we have containers.

    This also leads to a problem that Full Width option does not work and position of drop down menu is also messed up.

    Solution:

    Edit the header with Elementor.
    Select main/parent container which contains the complete header.
    In Advance tab, add class as elementor-section
    Hit Update, and here you go. You got it.

    Thanks

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @mbilaldanish,

    Thanks for sharing the solution!

    Kind regards,
    Herman ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mobile dropdown javascript error affecting positioning’ is closed to new replies.