• Hey there,

    Just started working with Semicolon and liking it a lot – thanks for the great work!

    I’m interested in making a fullwidth page template, but it looks a bit daunting for my low skill level. Tried to follow a generic tutorial but couldn’t make it work.

    It definitely won’t make or break me, but I figured it was worth asking if you have any pointers, or if I should avoid the hassle.

    Thanks much,
    Andrew

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    same here! I would like to remove the sidebar from specific pages too. Could you provide the link to the tutorial you mentioned? Thanks!

    hi,

    I am no expert but the following code works for me..

    Create a new page via ftp and name it.. page-fullwidth.php and place it in the themes folder.

    <?php
     /*
     Template Name: Full Width
     */
     ?>
    
    <?php
    
    get_header(); ?>
    
    	<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php get_template_part( 'content', 'page' ); ?>
    
    		<?php
    			// If comments are open or we have at least one comment, load up the comment template
    			if ( comments_open() || '0' != get_comments_number() ) :
    				comments_template();
    			endif;
    		?>
    
    		<?php endwhile; // end of the loop. ?>
    
    <?php get_footer(); ?>

    Then when you create a post or page simply select the Fullwidth Template option.

    @madtay: Thank you contributing to the forums but please do not encourage people to edit or add theme files directly. At best, they will lose all of their changes when they update the theme. At worst, they could bring their site down. They should be recommended to create a child theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fullwidth Page Template’ is closed to new replies.