TOm Tomko
asked 4 years ago

hi i need help how hide sidebar for someone post…

or from page is: http://i.imgur.com/Aths2h6.jpg , hod add this function for posts?

i need full width for post, thx for help.

1 Answers
DominicStaff
answered 4 years ago

To resolve this issue, you can use the following plugin: https://wordpress.org/plugins/wp-custom-post-template/
Then add the following code to the new single-page.

<?php 

/*

Template Name:News post page

*/

get_header(); ?>

 <section id="content" class="site-content">

 <div id="primary">

 <div id="primary-inner">

 <div id="main-content">

 <?php while ( have_posts() ) : the_post(); ?>

 <?php get_template_part( 'content', 'single' ); ?>

 <?php dw_gamez_content_nav( 'nav-below' ); ?>

 <?php dw_gamez_related_post($post->ID); ?>

 <?php if ( comments_open() ) comments_template(); ?>

 <?php endwhile; ?>

 </div>

 </div>

 </div>

 </section>

<?php get_footer(); ?>
Powered by DW Question & Answer Pro