Good afternoon! (Or whatever time your timezone is in.)
I’m working on a site currently, and I have a modal element included in one of the columns. It’s set so that the modal toggle is nixxed, and the modal itself is triggered from an anchor.
What Happens
When you click on the modal trigger text, the modal pops up. This is normal and exactly what I want. However, when you exit the modal the URL still contains the /#modal-hash thingy, effectively disabling the trigger text indefinitely unless the user clicks the “Logo” or “Home” buttons. Reloading the page (something that most users may try, should they ever need to re-click the text) does nothing, because it retains the hash.
What I WANT to Make Happen
Once the trigger text is clicked and the modal overlays everything, I want the modal background and “x” button to become one giant anchor that links to the parent page without the hash. Yes, the reload is a bit of a workaround, but it’s much more simple of a solution (I hope) than screwing with another layer of script.
If it’s possible to reset the anchor without this development, feel free to clue me in! However, I think that it’s technically a development bug or simply a limitation within the Cornerstone code development.
I do have a sneaking suspicion that you’re about to reply with a “this is custom code and outside of our support.” That’s fine, of course… but if you would be so kind as to direct me to where the modal overlay code file path is pointing within the theme or plugin files (ideally the HTML that generates .x-modal-content-outer) I can most likely take it from there.
Thank you for your time,
-Jake