Topic: Custom page template with sidebar « WordPress.org Forums

Views: 1121

Add page template with column in Zerif Lite

 
<div class=”clear”></div>
<!– / END HOME SECTION –>
<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 –>

</div>
<!– .content-left-wrap –>

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

</div>
<!– .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 « WordPress.org Forums
<ul>
<li>Source: <em><a href=”https://wordpress.org/support/topic/custom-page-template-with-sidebar/”>Topic: Custom page template with sidebar « WordPress.org Forums</a></em></li>
</ul>
</div>

Leave a Reply