Created
September 27, 2012 04:21
-
-
Save dpmckenzie/3792132 to your computer and use it in GitHub Desktop.
This is the regular full-column page from Wordpress's Coraline theme (which I use). I've made slight alterations (below) to get rid of the title and comments for my homepage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Full-width, no sidebar | |
* @package WordPress | |
* @subpackage Coraline | |
* @since Coraline 1.0 | |
*/ | |
coraline_set_full_content_width(); | |
get_header(); ?> | |
<div id="content-container" class="full-width"> | |
<div id="content" role="main"> | |
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
<div class="entry-content"> | |
<?php the_content(); ?> | |
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> | |
<?php edit_post_link( __( 'Edit', 'coraline' ), '<span class="edit-link">', '</span>' ); ?> | |
</div><!-- .entry-content --> | |
</div><!-- #post-## --> | |
<?php if ( comments_open() ) comments_template( '', true ); ?> | |
<?php endwhile; ?> | |
</div><!-- #content --> | |
</div><!-- #content-container --> | |
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: One Column, No Sidebar Home | |
* @package WordPress | |
* @subpackage Coraline | |
* @since Coraline 1.0 | |
*/ | |
coraline_set_full_content_width(); | |
get_header(); ?> | |
<div id="content-container" class="full-width"> | |
<div id="content" role="main"> | |
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<div class="entry-content"> | |
<?php the_content(); ?> | |
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> | |
<?php edit_post_link( __( 'Edit', 'coraline' ), '<span class="edit-link">', '</span>' ); ?> | |
</div><!-- .entry-content --> | |
</div><!-- #post-## --> | |
<?php endwhile; ?> | |
</div><!-- #content --> | |
</div><!-- #content-container --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment