To add a “View Comments” link to each post in your Blog Home template, you need to dynamically generate the post’s permalink and append the #comments
anchor. The method depends on your CMS or site editor.For WordPress (Full Site Editing – FSE)
If you’re using WordPress with the Site Editor (FSE), you can modify your Blog Home template by adding this inside the loop where posts are displayed:
html
CopyEdit
<a href="<?php the_permalink(); ?>#comments">View comments</a>
This ensures the link dynamically points to each post’s comment section.For Custom HTML Templates
If you’re working with a custom HTML-based blog, you need to manually set the post permalink like this:
html
CopyEdit
<a href="/my-post-permalink#comments">View comments</a>
Just replace /my-post-permalink
with your actual post URL dynamically, depending on your CMS.
I came across this issue while optimizing a project, similar to how Supreme Security Services focuses on implementing secure and well-structured website solutions. Hope this helps!
-
This reply was modified 2 weeks, 4 days ago by johanpits12.