• I made a new Template file (named full-size.php) in my child-theme directory with code like below; (I am using twenty-ten-child theme.)

    <?php
    /*
    Template Name: template-full-size
    */
    ?>
    
    <?php get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			/* Run the loop to output the page.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-page.php and that will be used instead.
    			 */
    			get_template_part( 'loop', 'page' );
    			?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_footer(); ?>

    And I made a Page with “template-full-size” template in dropdown menu and wrote a certain text.
    But the text does not shown.(header and footer is shown well.)

    How can I resolve this problem?
    Please Help me.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I use Page with new template file?’ is closed to new replies.