Single.php automatically load into a modal window over the homepage ?
-
Hi all !
Here is my question. I Hope someone can help me. Do not be hard with me, I learn coding by myself! It’s been a week since I try to find the solution .. I have a headache!
I build a website with wordpress listing items next to each other with a thumbnail image, title and excerpt of the article. When I click on it, the full article is opened in a modal window on top of the homepage.
Everything works perfectly. However, if I open the article link in a new window of my browser, it does not open me the contents of the article in a modal window on top of the homepage, as I would like.Example : If I give a post link to a friend like this https://www.mydomain.com/#post1, When he is clicking on it, I would like the url will open the requested page/url with the modal window open with the id #post1.
For example, this website do exactly what I’m looking for: https://www.usatoday.com/
By clicking on an item, its content is loaded into a modal window (look at the URL, it changes), and if you copy and paste this url, the site loads automatically with the modal window.
I want to do the same.
Ideas ? Anyone know to what jQuery script I can turn to.
Thank you very much very much for your response. I so need help.
- The topic ‘Single.php automatically load into a modal window over the homepage ?’ is closed to new replies.