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 😉

Template Name: No Side Bar
<?php get_header(); ?>
#main {
    padding:10px 15px 0;
#content {
    background: #FAF6F0;
    border: 1px solid #A07828;
        <?php if (have_posts()) : the_post(); ?>
            <div width="100%">
                    <h2><?php the_title(); ?></h2>
                    <?php edit_post_link(__('Edit', 'elegantbox'), '<span>', '</span>'); ?>
                    <span><?php _e('Update: ', 'elegantbox'); the_modified_time(__('F jS, Y', 'elegantbox')) ?></span>
                    <?php the_content(); ?>
        <?php endif; ?>
        <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