Title: Plugin Removing Nav ID&#8217;s
Last modified: January 3, 2020

---

# Plugin Removing Nav ID’s

 *  [ecogmedia](https://wordpress.org/support/users/ecogmedia/)
 * (@ecogmedia)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/)
 * I have a custom nav and each parent LI has an ID and when I activate the plugin
   it removes those ID’s and breaks my JS that controls the nav.
 * For example it removes the ID from this element.
 * <li id=”menu-item-2985″ class=”menu-item menu-item-type-custom menu-item-object-
   custom current-menu-ancestor current-menu-parent menu-item-has-children menu-
   item-2985″

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

 *  [macoafi](https://wordpress.org/support/users/macoafi/)
 * (@macoafi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/#post-12306280)
 * I’m not involved in this project, but I know why it’s doing that:
 * Divi makes the mobile menu by cloning the desktop menu (with IDs already on it),
   and that means you end up with two elements with the same ID. So, they’re stripping
   the IDs (which are put in place by Divi, but then _not actually used_) to get
   rid of that duplication.
 * Before I found this plugin, I was thinking about writing JS that edits all the
   IDs, so they say like “menu-item-123-desktop” and “menu-item-123-mobile”. Would
   something like that work for you?
 *  Thread Starter [ecogmedia](https://wordpress.org/support/users/ecogmedia/)
 * (@ecogmedia)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/#post-12308758)
 * Thanks for the reply though this is not using the main nav of the site but a 
   custom menu using wp_nav_menu so there is no mobile version of this menu.
 *  [benqwerty](https://wordpress.org/support/users/benqwerty/)
 * (@benqwerty)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/#post-12540421)
 * Have you tried un-checking “Fix duplicate menu ids”? (/wp-admin/admin.php?page
   =divi_accessibility)
 *  Thread Starter [ecogmedia](https://wordpress.org/support/users/ecogmedia/)
 * (@ecogmedia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/#post-12541541)
 * [@benqwerty](https://wordpress.org/support/users/benqwerty/) thank you, that 
   seems to have worked.

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

The topic ‘Plugin Removing Nav ID’s’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accessible-divi_202269.svg)
 * [Divi Accessibility](https://wordpress.org/plugins/accessible-divi/)
 * [Support Threads](https://wordpress.org/support/plugin/accessible-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/accessible-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accessible-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accessible-divi/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ecogmedia](https://wordpress.org/support/users/ecogmedia/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/plugin-removing-nav-ids/#post-12541541)
 * Status: not resolved