Page templates
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Page templates’ is closed to new replies.