Two single.php templates (not category ones) in one theme?
-
Is it possible to have 2 separate single.php files (not category ones) that can be linked to separately?
The reasonI ask is that I have 2 different views of my single posts.
One is in an overlay which is called in using the ajax option of thickbox and the other is the default flat version.
The overlay version has bits of the background, width and other things turned off using CSS. However it’s not working in any version of IE due to the fact that there are rendering issues with scripts in the page and the ajax call. I can only do this in IE if I call the single.php using the iframe option in thickbox. This causes me problems trying to control the CSS which I don’t want to have to write loads of lines of javascript hacks.
ideally I would rather have one single.php to use for the flat default version of the posts and one called single-overlay.php which didn’t have all the divs that I’ve had to hide which I could call using something like get_permalink but it would be called something else.
Is this possible? If so how do I link to the two separate versions?
- The topic ‘Two single.php templates (not category ones) in one theme?’ is closed to new replies.