Advertisement
Guest User

arconix no side bars, headers

a guest
Jun 21st, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.95 KB | None | 0 0
  1. [root@NVMBD1CBK150V02 twentyfourteen]# cat no-sidebar-page.php
  2. <?php
  3. /*
  4. Template Name: No-Sidebar Page Template
  5. */
  6. ?>
  7. <?php
  8. /**
  9.  * The template for displaying all pages
  10.  *
  11.  * This is the template that displays all pages by default.
  12.  * Please note that this is the WordPress construct of pages and that
  13.  * other 'pages' on your WordPress site will use a different template.
  14.  *
  15.  * @package WordPress
  16.  * @subpackage Twenty_Fourteen
  17.  * @since Twenty Fourteen 1.0
  18.  */
  19.  
  20. get_header("less"); ?>
  21.  
  22. <div id="main-content" class="main-content" >
  23.  
  24. <?php
  25.         if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
  26.                 // Include the featured content template.
  27.                 get_template_part( 'featured-content' );
  28.         }
  29. ?>
  30.         <div id="primary" class="content-area">
  31.                 <div id="content" class="site-content" role="main">
  32.  
  33.                         <?php
  34.                                 // Start the Loop.
  35.                                 while ( have_posts() ) : the_post();
  36.  
  37.                                         // Include the page content template.
  38.                                         get_template_part( 'content', 'page' );
  39.  
  40.                                         // If comments are open or we have at least one comment, load up the comment template.
  41.                                         if ( comments_open() || get_comments_number() ) {
  42.                                                 comments_template();
  43.                                         }
  44.                                 endwhile;
  45.                         ?>
  46.  
  47.                 </div><!-- #content -->
  48.         </div><!-- #primary -->
  49.         <?php get_sidebar( 'content' ); ?>
  50. </div><!-- #main-content -->
  51. <?php
  52. get_footer();
  53. ?>
  54. [root@NVMBD1CBK150V02 twentyfourteen]#
  55. [root@NVMBD1CBK150V02 twentyfourteen]# tail -3 style.css
  56.  
  57. .page-template-no-sidebar-page-php #content,
  58. .page-template-no-sidebar-page-php .post { width: 960px; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement