3 column version established, but I want only 2 when using a Page Template
-
I have created a child theme based upon Twenty Twelve using Zeak’s tutorial for establishing a 3 column version.
(https://www.zeaks.org/2012/twenty-twelve-theme-three-column-layout)After some moving around in the style.css, the original sidebar is now on the left and the extra sidebar is on the right.
However, I have now some Pages in my system (with tables) where I would like only to have the original sidebar and the entire page occupying the remaining part. I am trying to create a page template. but I cannot get it to function. Do you have some ideas?
Below is my draft page template
<?php /** * Template Name: Left Sidebar Only */ get_header(); ?> <div id="primary" class="site-page-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div> <!-- #primary --> <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- #secondary --> <?php endif; ?> <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘3 column version established, but I want only 2 when using a Page Template’ is closed to new replies.