Comments redirect
-
Each comments
<li>tag hasid="li-comment-<?php comment_id(); ">Remove the “li-comment-” part and it will work.
Note: I don’t know exactly what is inside the
<?php ?>tags, but keep whatever it is and remove the li-comment-Thanks, I tried what you say but nothing happened, I stay at the top and not redirected back to the comment.
Anyone else have any idea about this ?
I just tried to take another look at your site but it’s not loading right now.
try now, it is working fine.
Whoops, it looks like I told you to remove the wrong part…remove just the
li-part, leavingcomment-<?php comment_id(); ?>After leaving a comment you are redirected to http://yoursiteurl.com/#comment-#### where #### is the comment id.
thanks, it worked but it takes me to the top portion of the comments section and not to the comment just posted.
Find style.css in your theme and change:
line 1078 from:
.comment-body{ float: left; padding: 8px; }to:
.comment-body{ /*float: left;/**/ padding: 8px 8px 25px 8px; }There are some other CSS styles for .comment-body, but leave them as they are.
Yeah now it is working perfectly fine, thank you so much 😀
Is it possible to get this plugin to work with the Disqus comment system? I have it installed, and tried commenting, but nothing happens.
Or is there an alternative that works with Disqus?
The topic ‘Comments redirect’ is closed to new replies.
(@gautamanizer)
15 years, 2 months ago
How to make the user or anyone after leaving a comment to a post being redirected back to that comment ?
My blog – http://www.hyipinvestigation.com
Currently after posting a comment I am taken back to the top of the post.