Title: Mobile dropdown javascript error affecting positioning
Last modified: July 20, 2023

---

# Mobile dropdown javascript error affecting positioning

 *  Resolved [annettepixie](https://wordpress.org/support/users/annettepixie/)
 * (@annettepixie)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/)
 * 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 :
 *     ```wp-block-code
       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 2 years, 10 months ago by [annettepixie](https://wordpress.org/support/users/annettepixie/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/#post-16915459)
 * Hi [@annettepixie](https://wordpress.org/support/users/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)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/#post-16950967)
 * 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 😊
 *  [mbilaldanish](https://wordpress.org/support/users/mbilaldanish/)
 * (@mbilaldanish)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/#post-17326961)
 * 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-sectionHit Update, and
   here you go. You got it.
 * Thanks
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/#post-17333103)
 * Hi [@mbilaldanish](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/header-footer-elementor/assets/icon-256x256.gif?rev=3278750)
 * [Ultimate Addons for Elementor](https://wordpress.org/plugins/header-footer-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-elementor/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/mobile-dropdown-javascript-error-affecting-positioning/#post-17333103)
 * Status: resolved