• I have a problem with permalinks on comments on https://www.curaj.net just enter any post and try it.

    I thought it’s a browser problem, but it isn’t, I also have WP installed on another website and permalinks on each comment are woking just fine.
    I’ve opened the comment.php on both websites and the a href tag it’s the same, so the problem is somewere else.
    Notice that when you clik on a comment permalink it updates the link in the browser URL bar but it just don’t updates the page properly!

    Any help is appreciated!

    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Actually, clicking on the “Comments” it does take you to the single post view as expected – the only thing that doesn’t happen is: it doesn’t jump down to the comments section, it goes to the top of the page.
    Reason: you don’t have an anchor (target) named #respond. Add that into the comments.php and it should work.

    Noroc si voie buna!

    Thread Starter bregutz

    (@bregutz)

    He he, moshule, thanks for answer but it’s still unclear to me!
    Where to i have to add this “#respond” in my comments.php
    And then, why do i have to do it, while on my other blog it works just fine, without any changes, just check out https://www.sergiubrega.com and see the difference!

    Saru’ mana!

    Now it works on both ??

    Thread Starter bregutz

    (@bregutz)

    Really!? i think there’s a missunderstanding, and i don’t think the problem is from my browser.
    So, like here on this thread, when you click the “#” sign right near the time of a comment it updates the page os it displays the begining of that comment. But this doesen’t happen on curaj.net
    When you clink on a comment permalink, nothing happens, just the link in the browser navigation bar is updated
    So what am i missing!?

    OK, here is a trick (let’s separate the two problems):
    When there is NO comment on a post WP wnats to “jump” to an anchor “#respond” – if exists.
    If there are comments (and first I checked posts with comments!) then WP jumps to “#comments”.
    This second case works in BOTH blogs.

    The respond doesn’t work in any of them.

    Now, for the other issue (date as a ‘permalink’ for comments) – I have to look into it deeper. It might be a theme issue.

    In the original theme’s comments.php ther is this code:
    <li id="comment-<?php comment_ID() ?>">

    Seemingly you’ve changed it to:
    <li id="commentbgr"> – which was a mistake because now your comments, which are displayed as list items, don’t have their individual ID# that would cretae the target anchor to make the browser to jump there.

    Thread Starter bregutz

    (@bregutz)

    great, now we talk about the same think, so i don’t want to do any changes right now on the first issue, unless it’s important or you recomend it.

    But i want to fix the second issue on the blog with problems, so i’m waiting your help! I’m might acctidentaly did some bad changes to my theme, but now i don’t know what to check, where to look!?

    Thread Starter bregutz

    (@bregutz)

    hew! you’r the best! the broblem is solved!
    I did that change because i wanted to be able to format the comments.
    Now can you tell me how can i do it without messing up the things again?
    I’m also looking into making a coment background of a color, the next comment bgr of another collor, than the same collor again and so on, like here on this site, can you tell me how this is done? :”>

    As I see it – you already corrected the code. Now, if you want to keep the ID and the bg format, do this:

    <li id="comment-<?php comment_ID() ?>" class="whatever">

    and in the stylesheet change what was earlier
    #whatever to > .whatever

    OK, we posted in the same time.
    For alternative colours on the comments look into the default theme – is has it out of the box.

    Thread Starter bregutz

    (@bregutz)

    you’r a genious moshule!
    It worked just perfect!
    You just didn’t suggested me how that style of comments background is achieved ;;)

    Thread Starter bregutz

    (@bregutz)

    great! i hope i well be able to figure out what is the code i need from there, if not i will be back to you!
    Thank you very very much, you’r great!

    I am having the same issue (similar), but seemingly I think I have the right code for this on my test site: https://wp.corpedia.com/blog

    I have both id=”respond” and id=”comment-<?php..” in the right place. When you click to view the comments, it jumps to the comment and eats the rest of the page.

    Any ideas?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Comments permalink not working properly’ is closed to new replies.