How to detect if a Wordpress article has been loaded into a lightbox?

1

I'm creating a news site, I'm using Wordpress as a CMS and I'm using a JQuery (Magnific Popup) plugin to open the articles in a lightbox .

I made single.php without the header and without the footer, since you will not need to, because lightbox opens on top of the home of my site. So I wanted it when the user clicked on the "Article" in the home site, it opened in a lightbox , and when he accessed the "Article" by direct link, the article as a normal page, with header and footer.

    
asked by anonymous 13.05.2014 / 00:34

1 answer

0

Instead of using the single, create a lightbox-only file.

Leave the default single and the other file without header and footer.

    
13.05.2014 / 21:53