Comments Section Missing

So, my comments sections are not displaying on my site and have been missing for quite some time now.

Can you please tell me why?

Hi There,

Thanks for writing in!

Please check Settings -> Discussion uncheck the comment option if it checked.

If that doesn’t help please send us your login details so that we can have look.
Please post the details in a secure note.

Thanks

That didn’t work.

Hello There,

Thanks for updating in! Regretfully the password did not work for us. Please double check it.

By the way, please also check if the comments were not disabled in the single post or in the general settings. By default, comments might be turned off 14 days after the post has been published which is in the settings, Settings > Discussions. For more details about comment settings, please check out this codex: https://codex.wordpress.org/Comments_in_WordPress

Hope this helps.

The comments haven’t worked in months.

Also could you tell me why my blog, tag, and category pages are not displaying ?

since they are not pages I created it may be a a theme issue.

Hi @quituck,

It’s not because of the theme, but because of the customization, you added in your child theme. For example, you put a blank index.php in your child theme with this content

<?php
// Silence is golden.

The index.php is being used by blog, archives, categories, tags, and more. And now it’s blank because of that. Please remove that from your child theme.

As for the comment, that option will only work on new posts. Existing posts with disabled comment will remain disabled. But I can’t fully check it since you have customization. Please remove them and test it again (make sure to keep some backups before deleting them).

And for existing posts, you may need to manually allow comments (individually) similar to this https://en.support.wordpress.com/enable-and-disable-comments-for-published-posts-and-pages/

Thanks!

Thank you so much. Fixed the blog page problem.

Now about those comments - I created a new test post and the comments still didn’t display. I also never disabled my comments. I just noticed one day that they were no longer there.

Over a year ago had the FB comments integrated with the plugin after an update I believe they stopped working so I deactivated the FB comments plugin that came with the them and my comments never returned, which is why I thinks its related to the theme.

I really don’t want to have to reset the theme right now because I will have to re-customize some parts. So I will have to put this issue off until I can unless you have any other ideas why they are not appearing.

I also have a bunch of broken images on my site. Not sure how that happened. Any ideas?

Hello There,

Thanks for updating in!

1.) Your comments did not show up anymore because of this setting, Settings > Discussion.

Comments must always be open even if the post is beyond 28 days from the published date.

2.) It could just a caching issue. Please clear all your plugin cache since you have installed WP Super Cache.

Hope this helps. Please let us know how it goes.

Ha, I feel like an idiot for not noticing that. My comments are back. Thank you!

2 More questions

Now that the comments came back, it displays comment title about the input box …One Comment on “,Blog Post…”

How can remove that? and Or Edit it?

As far as multiple broken images: I deleted the cache plugin and they still haven’t returned. I even tried changing the images and they still aren’t displaying. I’m not sure what caused this problem. Can you help me solve it?

It would be greatly appreciated. Thanks!

Hi There,

To remove that text, please add this custom CSS under Theme Options > CSS:

div#comments h2.h-comments-title {
    display: none;
}

All the images look good on my end:


https://i.imgur.com/jnI8Ckj.png
Could you please check on another computer use the private/incognito mode?

Let us know how it goes!

All set here. Thank you for all of your assistance. I really appreciate it.

You’re welcome!
Thanks for letting us know that it has worked for you.

Instead of removing the comment title how can I edit it to just say comments using this code:
div#comments h2.h-comments-title {
display: none;
}

Also do you know anything about hentry errors?
I have missing author, updated, and entry title errors from Google for my pages and posts.

I read an article on yoast https://kb.yoast.com/kb/fixing-hcard-author-error/

So I used this code <?php the_author(); ?>

My errors didn’t go away. I know that they are related to the theme’s code.

Do you have any suggestions on how I can fix this issue?

Hi @quituck,

In that case, please remove that CSS. Then in your child theme, please copy this file /wp-content/themes/x/framework/views/renew/wp-comments.php into your child theme with same folder path (eg. /wp-content/themes/x-child/framework/views/renew/wp-comments.php).

Then edit the text in this line

printf( _n( 'One Comment on %2$s', '%1$s Comments on %2$s', get_comments_number(), '__x__' ),

You may use your hosting’s file manager to edit that file. Or if you’re familiar with FTP and any text editor, you can do that too.

As for hentry, please check this related code and implement the suggested code. https://theme.co/apex/forums/topic/hentry-errors-2/

Thanks!

Thank you for that.

The link you sent me didn’t work for the hentry errors. Is there another resource I can get code from to fix this issue?

Hi @quituck,

The link works okay on my end. But here is the code from that thread that you could add to your child theme’s functions.php


/* Fix "Missing Author" and "Missing Updated" issue – START */
add_filter( 'the_content', 'custom_author_code');

function custom_author_code($content) {
if (is_singular() || is_single()) {
return $content .
'<div class="hatom-extra"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ;
} else {
return $content;
}
}
/* Fix "Missing Author" and "Missing Updated" issue – END */

It’s not from us but from the thread owner, we can’t provide further customization on this snippet. Plus, they will only fix errors on single posts and pages. Other error coming from other areas may still trigger the error, anything that contains hentry class. Not all of them are meant to be optimized especially if its purpose is a design element, but still, Google has no capability to differentiate that so regardless of setup, it will trigger errors where hentry is present even if it’s not an article.

Thanks!

Thank you. I think the page is private because the message said “this page doesn’t exist or is private”. That’s why I can’t see it.

I applied the code. In a few days I will know if my errors are removed. So I will follow up then.

Hi @quituck,

Sure, please let us know. And you’re welcome :wink:

Thanks!

So the code for the henty displays at the bottom of my pages. Is there a way I can hide it? I didn’t know that I would leave a visible stamp at the bottom of my web pages. Also it doesn’t work on my tag pages. Any suggestion how I can apply it to them?