Hello 
We would like to activate comments on some pages. Using the template Blank - Container Header, Footer
How do we do that?
We can’t get it to work.
www.blojfri.se/
Many thanks,
Sofia
Hello 
We would like to activate comments on some pages. Using the template Blank - Container Header, Footer
How do we do that?
We can’t get it to work.
www.blojfri.se/
Many thanks,
Sofia
Hey Sofia,
Thanks for writing around! To show comments on (Container | Header, Footer) page template, you need to create a new file template-blank-1.php and paste the following code inside:
<?php
// =============================================================================
// VIEWS/RENEW/TEMPLATE-BLANK-1.PHP (Container | Header, Footer)
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
// =============================================================================
?>
<?php get_header(); ?>
<div class="x-container max width offset">
<div class="x-main full" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php x_get_view( 'global', '_content', 'the-content' ); ?>
<?php x_get_view( 'global', '_comments-template' ); ?>
</article>
<?php endwhile; ?>
</div>
</div>
<?php get_footer(); ?>
Then via FTP upload the file to your Child Theme in /x-child/framework/views/renew/ directory. You’ll need to create the renew folder if you don’t see in there.
Then via WordPress admin panel make sure to enable comments (see screenshots)


Let us know how this goes!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.