Support » Fixing WordPress » Full-width template

  • Hi.
    I’ve tried to do a template without sidebar for my page:
    . I’ve done a file: fullwidth.php and wrote CSS code in editor in wordpress but It didn’t work.


     Template Name: Full Width
    <?php get_header(); ?>
        <div id="single_cont-full">
            <div id="single_left-full">
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <h1 class="single_title"><?php the_title(); ?></h1>
                    <div class="single_content-full">
                    <?php the_content(); ?>
                    <br /><br />
                    <?php //comments_template(); ?>
                <?php endwhile; else: ?>
                    <h3>Sorry, no posts matched your criteria.</h3>
                <?php endif; ?>
                <div class="clear"></div>
            <div class="clear"></div>
    <?php get_footer(); ?>

    and CSS code

    #single_cont-full {
    	padding: 25px 0 0;
    #single_left-full {
    	width: 700px;
    	margin: 0 auto;

    Maybe someone can help me?

  • The topic ‘Full-width template’ is closed to new replies.