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.