Single post layout for specific template
-
Ok I’ve been trying to get this to work for 2 days now and I just can’t make it happen so I want to ask you guys for help.
Is it possible to load the content from a certain post into a div without the header and footer? IE, create a new single.php layout without the header and footer and ONLY call it when the visitor is on a specific page? Or let me put it this way, is it possible to load a single post without the header and footer in one specific template layout, and use the default single.php layout on the rest of the website?
My problem in depth: I have created a specific theme layout for one part of my website. On that page I have two divs. The left div contains a list of posts from one specific category and the other div loads the content from the left div when the links are clicked.
Now, my problem is that when you click on the links in the left div, the ENTIRE single post is loaded into the right div, including the header and footer. How can I create a template for those single posts so the header and footer won’t show?
I can’t remove the header and footer in single.php because that would drop the header and footer from the single post layout if the single posts links were clicked from other parts of the website.
Any help is appreciated because I’m really getting frustrated.
- The topic ‘Single post layout for specific template’ is closed to new replies.