• I want to change the direction where people are being redirected to when they click on the ‘no comments’ (or 1, 2, 3 comments) link below an entry on the main page. Now the page scrolls down to where the comments start. I don’t want the single entry page to scroll automaticly. I want the comment-link to ‘redirect’ to the permalink.

    Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter min6

    (@min6)

    I guess no? ??

    It’s possible but it would require you to know some PHP.

    You’d basically have to copy-paste the function comments_popup_link from the file wp-includes/comment.php into the file functions.php in your own theme directory. Then rename the function, find the part where the <a href> tag is being contructed, and make changes there. Then go back to your template page, and replace the words “comments_popup_link” with the name of your function, keeping the parentheses and everything inside as is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change comment-link’ is closed to new replies.