• Resolved jack_martin_leith

    (@jack_martin_leith)


    I am an experienced WordPress user and have been using Virtue for many months.

    Comments function is working on posts but not on pages, even though “Allow Comments” box is ticked.

    Earlier today I updated Virtue to 1.8.1 and the problem persists.

    Here is a typical page where I need the Comments function to be available: https://www.jackmartinleith.com/timeline/

    Any help will be gratefully received. Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hey,
    The theme wasn’t really designed to have comments on pages. So thats the problem, the code isn’t there for this to happen. I’ll consider it for an update but currently this isn’t possible without editing the theme files.

    Kadence Themes

    Thread Starter jack_martin_leith

    (@jack_martin_leith)

    I’m grateful for your response and a little shocked that such a sophisticated theme doesn’t allow for comments on pages. It’s time we rethought the post/page distinction. Traditionally, pages are for static content and posts for dynamic content, but we need to let go of that idea. https://www.jackmartinleith.com/timeline/ is a page because the dimensions of the timeline image made it necessary to go full width. Otherwise it would have been a post.

    I’ll consider it for an update

    That would be lovely. With warm thanks and best wishes from Bristol, UK.

    Just so you know, you can do a full width post. It’s an option on the edit post page ??

    Kadence Themes

    Thread Starter jack_martin_leith

    (@jack_martin_leith)

    Thanks, that’s good to know. My fix: add a three-field contact form to the bottom of the affected pages. There are only a couple of such pages. I appreciate your earlier responses to my question.

    Was this problem addressed in any of the recent updates? I love this theme but, I need to be able to add comments to pages. Please help.

    If you want to add it yourself you can edit the page template files, just before the closing div add this:

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

    Kadence Themes

    Thank you.

    I messed something up. I tried to apply this to the blog page template and now none of the content from the page is showing.

    Is there a way to restore the default or original settings? I think I am making it worse.

    Just re-download the theme.

    You tried to add the page-blog.php ?

    What line did you add it on?

    This won’t work if you make that page your latest posts page in the reading settings of wordpress.

    Kadence Themes

    Fantastic! That worked beautifully.

    Thank you so much. Your theme is great.

    If it isn’t to much trouble, can you tell me how to change “leave a reply” to say something else?

    Thanks again for all of your help.

    Yeah you can edit the template file virtue/templates/commments.php line 54.

    Kadence Themes

    Can you specify at which line in comments.php you enter <?php comments_template(‘/templates/comments.php’); ?> ?

    You don’t add that line to the comments.php file.

    You edit the page template files, just before the closing div add this:

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

    Kadence Themes

    Thanks very much for your help.

    Hello after the latest update of the them the command

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

    doensn’t work for me. This is the screenshot of my code.
    https://screencast.com/t/TL0pQi7du8G

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 6 month old resolved topic as it references an older version of WordPress.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Comments function on pages not working’ is closed to new replies.