Topic: Custom page template with sidebar « Forums

Views: 1102

Add page template with column in Zerif Lite

<div class=”clear”></div>
<div id=”content” class=”site-content”>
<div class=”container”>
<div class=”content-left-wrap col-md-9″>
<div id=”primary” class=”content-area”><!–?php while ( have_posts() ) : the_post(); get_template_part( ‘content’, ‘page’ ); // 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(); endif; endwhile; ?–> <!– #main –></div>
<!– #primary –>

<!– .content-left-wrap –>

<div id=”sidebar” class=”col-md-3″></div>
<!– .sidebar-wrap –>

<!– .container –> <!–?php get_footer(); ?–>

I looked at code you have above and realise you have an additional

before the sidebar div. Try removing it and it should work.


&lt;!– .content-left-wrap –&gt;

&lt;!– remove this –&gt;
<div id=””sidebar”” class=””col-md-3″”>


Source: Topic: Custom page template with sidebar « Forums
<li>Source: <em><a href=””>Topic: Custom page template with sidebar « Forums</a></em></li>

Leave a Reply