I have a lightbox on the home page with a YouTube trailer embedded. There’s a lightbox link on the page however I also want the ability to have a link that automatically opens the lightbox
For example: www.example.com?play=trailer
My custom code checks if the play=trailer query exists in the URL and if so, jQuery triggers a click event on the lightbox link, however the lightbox doesn’t open.
I’ve searched the forums but can’t find a solution so any help is appreciated.
Here is my site: LINK