Support » Theme: Toothpaste » Page without sidebars?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just one page or the entire website?

    Okay I went ahead and meddled with it and made a template. So if anyone is looking this is how I did it.

    Created a file called noside.php

    Template Name: noside
    get_header(); ?>
    <div id="primarynoside" class="content-area">
    	<div id="content" class="site-content" role="main">
    		<?php while ( have_posts() ) : the_post(); ?>
    			<?php get_template_part( 'content', 'page-noside' ); ?>
    			<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
    				<div id="single-comments-wrapper">
    					<?php comments_template( '', true ); ?>
    				</div><!-- #single-comments-wrapper -->
    			<?php endif; ?>
    		<?php endwhile; // end of the loop. ?>
    	</div><!-- #content .site-content -->
    </div><!-- #primary .content-area -->
    <?php get_footer(); ?>

    Then made this change to the style.css file.

    #primarynoside {
    	width: 100%;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	float: left;
    	padding-right: 35px;

    So far I see no issues. Just thought I would show an example. 🙂

    Toothpaste has a built in template without sidebars, but I just noticed a small issue in the CSS that’s preventing it from working properly. I’ll update it in the next version. Sorry about that!

    Glad you found a solution in the mean time.

    Ah okay. I know a lot of themes usually have an option for it. So that is good to know. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page without sidebars?’ is closed to new replies.