Elegant Box Modifications

Here is a little template that can be used with the “Elegant Box” wordpress theme in order to use as a template without the widgets column.  This is useful is displaying forums or other word press content that you would like to display in the entire page:

Pop this in your wpcontent\themes\elegant-box in a file called nosidebar.php and you will be able to alter your forums post accordingly 😉

<?php
/*
Template Name: No Side Bar
*/
?>
<?php get_header(); ?>
<style>
#main {
    width:940px;
    float:left;
    padding:10px 15px 0;
    overflow:hidden;
}
#content {
    background: #FAF6F0;
    border: 1px solid #A07828;
}
</style>
        <?php if (have_posts()) : the_post(); ?>
            <div width="100%">
                <div>
                    <h2><?php the_title(); ?></h2>
                    <div></div>
                </div>
                <div>
                    <?php edit_post_link(__('Edit', 'elegantbox'), '<span>', '</span>'); ?>
                    <span><?php _e('Update: ', 'elegantbox'); the_modified_time(__('F jS, Y', 'elegantbox')) ?></span>
                </div>
                <div>
                    <?php the_content(); ?>
                </div>
            </div>
        <?php endif; ?>
    </div>
    <div></div>
        <div id="bottom">
<?php get_footer(); ?>

I am aware overwriting the thee in that manner is not exactly elegant, but it gets the job done in a single file so works for me.

This entry was posted in Elegant-box, Wordpress. Bookmark the permalink.

Leave a Reply