Static page template with nothing but the content
-
Hi. I couldn’t find anything specifically about this here, and I thought I’d be able to figure it out by reading related threads, but sadly, I fail.
I’m trying to make a page template that has nothing on it but the ‘content’, no header, menu, sidebar or footer. I’d prefer it not to even have the background image either.
So, here is what I have:
<?php /* Template Name: No-nothing */ ?> <div id="No-nothing"> <?php if (have_posts()) : while (have_posts()) : the_post() ?> <div class="post-page-head"></div> <div class="post-page" id="post-<?php the_ID() ?>"> <h2 class="pagetitle"><?php the_title() ?></h2> <div class="entry"> <?php the_content() ?> </div> <br class="clear-margins" /> </div> <div class="post-page-foot"></div> <?php endwhile; endif; ?> </div>
I’ve experimented with this and it seems I’m getting close, but right away I’m encountering two problems:
The page I made to test it has a NextGen Gallery on it, and for some reason, it’s displaying all the thumbnails in a single column along the left, instead of creating rows.
Also, the Flash-based slideshow doesn’t work in this template – it gives this error:
The Flash Player and a browser with Javascript support are needed..
How can I make a page display nothing but the content, and maintain loop functionality?
- The topic ‘Static page template with nothing but the content’ is closed to new replies.