How to implement custom URL handler to access JS modal content?

I maintain a wordpress site that is javascript heavy and includes a lot of content in modals created with the the Tingle Modal library. The site is designed as a single-column site for the main page, with hash based navigation to take users up and down the page. What I would like to achieve, is to make the modal content accessible by url, so that external users can be directed to the content.

The modals themselves pull in info from a custom content type and are triggered by a jquery function called by clicking a url on the mainpage. I assume to get the functionality I want I would need to implement some sort of custom URL handler which would trigger the modal function submission, but I’m not sure what the best way to implement this would be ( .htaccess, PHP script, Jquery, combination?). Anyway, I wanted to know if anyone has dealt with something like this and had suggestions?

Read more here:: How to implement custom URL handler to access JS modal content?

Leave a Reply

Your email address will not be published. Required fields are marked *