Title: Navigation between modals
Last modified: May 3, 2022

---

# Navigation between modals

 *  Resolved [mpotter21](https://wordpress.org/support/users/mpotter21/)
 * (@mpotter21)
 * [4 years ago](https://wordpress.org/support/topic/navigation-between-modals/)
 * Hi there – I am trying to add a feature to allow navigation between modals while
   one is already open. However if I try adding a trigger link in the _open_ modal
   with the class for the _next_ modal, it isn’t working as expected.
 * Can you point me in the right direction to add next/prev links for each modal
   block? Any info would be appreciated. Thanks again!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnavigation-between-modals%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [merbmerb](https://wordpress.org/support/users/merbmerb/)
 * (@merbmerb)
 * [4 years ago](https://wordpress.org/support/topic/navigation-between-modals/#post-15615681)
 * Hi this is not something that is supported at the moment. The whole idea with
   modals is that only one modal should be active at any one time (there is a check
   in the js code to ensure only 1 modal is open at once). Therefore to implement
   this, control would need to be passed from one modal when it’s closed to another
   modal. Having said that I think I know how I could do this. I am working on a
   new version at the moment so let me see what I can do, but it may take a couple
   of weeks before it’s released.
 *  Plugin Author [merbmerb](https://wordpress.org/support/users/merbmerb/)
 * (@merbmerb)
 * [4 years ago](https://wordpress.org/support/topic/navigation-between-modals/#post-15619696)
 * Hi, I have made the change to allow this, but have not pushed the release yet.
   In the short term if you need it just grab the modal.js file from here [https://github.com/merbird/modal-block](https://github.com/merbird/modal-block)
   and replace the one in the plugin directory.
 * In order for it to work do what you were doing but also add the class bod-modal-
   to-modal class to the trigger link.
 * Let me know if you have any problems
 *  Thread Starter [mpotter21](https://wordpress.org/support/users/mpotter21/)
 * (@mpotter21)
 * [4 years ago](https://wordpress.org/support/topic/navigation-between-modals/#post-15620030)
 * Awesome thanks! This is exactly what I was looking for. I appreciate the quick
   response as always.

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

The topic ‘Navigation between modals’ is closed to new replies.

 * ![](https://ps.w.org/modal-block/assets/icon-256x256.png?rev=2149842)
 * [Modal Guten Block](https://wordpress.org/plugins/modal-block/)
 * [Support Threads](https://wordpress.org/support/plugin/modal-block/)
 * [Active Topics](https://wordpress.org/support/plugin/modal-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modal-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modal-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mpotter21](https://wordpress.org/support/users/mpotter21/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/navigation-between-modals/#post-15620030)
 * Status: resolved