• Every post I can find anywhere tells me I don’t want to do it. But I still want to do it. wpbeginner has one I find that doesn’t work because the theme I’m using is twentysixteen.

    How does one go about giving users the ability to view current comments without having to click on the comments link to open the post?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Perhaps you could offer visitors a link to your comments feed?

    Moderator bcworkz

    (@bcworkz)

    You would need to alter some theme templates. Thus you should create a child theme so your changes are protected during theme updates.

    I’m assuming you are using the default blog list front page, not a “static” front page. If I’m wrong, the following concept is still applicable, but the templates altered will change. In the template part content.php, the current comment link is output by twentysixteen_entry_meta(). This function is “pluggable”, which means you can override its declaration in your child theme. Your version will be used in place of the original. This way you can suppress the comment link output.

    To cause comments to be listed right under the post listing, on the template part content.php, get the comments.php template part where you want the comments to appear. ( by calling get_template_part() ) This template will also output the new comment form. If you wish to suppress that, make a template variant that does not call comment_form() and get that variant instead of comments.php.

    Thread Starter lazyym

    (@lazyym)

    Thanks @bcworks,

    I do have and am comfortable with my child theme. I do have my latest posts set as my home page, not a static page. I am not yet comfortable working with templates to that extent.

    Is there any way to do it with a function?

    Moderator bcworkz

    (@bcworkz)

    Umm, maybe, but it would get quite messy. The template changes at root are fairly minor. You may want further adjustments once you have the basics working. The sort of adjustments ideal to do with templates. I suggest you make the effort to struggle through template mods. Change a little at a time, checking your work frequently. Define WP_DEBUG as true in wp-config.php so that you are notified with any issues at all from PHP. Keep incremental backups so it’s easy to step back in case of trouble. You can also always revert to the original template from the twentysixteen folder. It’s good to push your comfort zone a little bit 🙂 There’s little at risk other than your time.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Expand comments on home page’ is closed to new replies.