• I posted this question a few days ago but didn’t get any responses so I’ll post it again.

    I am new to WP.
    I am trying to create a “static” site (no blogs,sidebars,etc)and have been struggling with the proper strategy to create static pages.

    I think I might have it now, but not sure.
    I have 3 pages on the site so far. I have a Home, About Us & Services page.
    I did this by (and by using the Twenyten theme), creating 3 child page templates (page_home.php, page about.php & page_services.php).

    Now… I just use the associated template with the each page.
    The client can now edit each page, which was my goal.

    Is this a correct stategy to creating a static site?
    I do appreciate your input. Buffmin2

    If you want to see my junk site so far, it is at https://doubledoubleny.com/

    PS: I attached my code for my “page_about” template.

    <?php
    
    /**
     * Template Name: About Us
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    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_sidebar(); */?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Creating individual child page templates… is this Right?’ is closed to new replies.