Support » Theme: Virtue » Adding comments form to pages

  • We are trying to add comments forms at the bottom of our pages.
    I’ve tried to edit the page template files as suggested in other posts using the code below (adding it before the closing div):

    <?php comments_template('/templates/comments.php'); ?>

    Then we added a commment from our admin and the comment shows but the comment form still doesn’t show.

    We are using Child-Virtue Theme.

    Sorry no links to our website as it is still not online (working on it locally)

    Thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What template are you using in the page settings and what template file did you add the code to?

    Kadence Themes

    Thanks very much for your help.

    We are using Fullwidth for template.
    The template file is page.php

    We added the code into page template files (appearance/editor/edit themes/page.php):

    <?php comments_template('/templates/comments.php'); ?>

    This is my code (page.php) after we added:

    <div id="pageheader" class="titleclass">
    		<div class="container">
    			<?php get_template_part('templates/page', 'header'); ?>
    		</div><!--container-->
    	</div><!--titleclass-->
    
        <div id="content" class="container">
       		<div class="row">
          <div class="main <?php echo kadence_main_class(); ?>" role="main">
    
    <?php get_template_part('templates/content', 'page'); ?>
    <?php comments_template('/templates/comments.php'); ?>
    </div><!-- /.main -->

    I have the “allow comments” ticked on each page where is needed.

    I appreciate your earlier responses to my question. Thanks again for all of your help.

    Hey,
    If your using the fullwidth template then the file is not page.php

    It’s page-fullwidth.php

    Kadence Themes

    This worked wonderfully for me!! Thank so much! I am in love with this theme. I may have to purchase it 🙂

    Thanks so much.
    We already tried to put the code into page-fullwidth.php

    This is our code after adding it:

    <?php
    /*
    Template Name: Fullwidth
    */
    ?>
    
    	<div id="pageheader" class="titleclass">
    		<div class="container">
    			<?php get_template_part('templates/page', 'header'); ?>
    		</div><!--container-->
    	</div><!--titleclass-->
    
        <div id="content" class="container">
       		<div class="row">
         		<div class="main <?php echo kadence_main_class(); ?>" role="main">
    				<?php get_template_part('templates/content', 'page'); ?>
    				<?php comments_template('/templates/comments.php'); ?>
    			</div><!-- /.main -->

    The result is still the same as before, this is our printscreen.

    This is a pict of what we would want: pict

    In that pict we see ‘leave a reply’ form after the comments.
    We would want the original comment form from wordpress showing below the facebook social plugin.

    What are we doing wrong?

    We would like to be able to have this feature without using an extra plug-in.

    Thanks again for all of your help. This is an awesome theme.

    Are you using the comment plugin? It looks like your using a plugin that is replacing the wordpress comments.

    Kadence Themes

    Anyway you can post to the actual site?

    Thank so much.

    Yes, we were using facebook social plug-in.
    We already deactived it, but the comment form still doesn’t show. (We also deactivated just in case akismet, jetpack, etc).

    This is a bigger print screen: actual site

    There are any pict when i tried to inspect element from chrome browser:
    picture1 picture2 picture3 picture4 picture5

    Maybe you can picture better the cause of our problems with these printscreens above.

    Many thanks.

    Hey,
    I would really need to see the actual site so I could look at the code and see what might be hiding your reply form and causing the strange styling of the comments.

    Kadence Themes

    Thanks for your respond.
    Please check your email for dropbox link of our site.

    Many thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding comments form to pages’ is closed to new replies.