• Hi, I’m trying to make a full width content page but can’t seem to create a template that works with this team simply making a duplicate page.php width different name and template name it. WordPress admin won’t find it when creating a new page.

    Any ideas of why?

    <?php
    /*
    Template Name: Full Width
    */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area clearfix">
    		<div id="content" style="width:100%">
    
    			<?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();
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Theme Author Christine Rondeau

    (@crondeau)

    I’m not sure why that wouldn’t work. You should be able to add templates to any theme. Are you doing this in a child theme?
    Are you sure that the template is in the right spot?
    Do you have a cache plugin installed?

Viewing 1 replies (of 1 total)
  • The topic ‘Page templates’ is closed to new replies.