I'm developing a new theme and plugins for it. Unfortunately, the comment reply link is broken. Instead of moving the comment reply textarea, the page is reloaded by adding e.g. ?replytocom=2#respond to the URL (corresponding to the value of the href attribute).
Here's a link to see what I mean:
... (No longer necessary to view link)
Thanks in advance for your help!
Best joschi81
EDIT: I found out that it's caused by my "dirty" hack to modify the #reply-title. Which I do like this: functions.php.
// add variable to change comment form title
function add_comment_title_variable($content) {
$output = $content;
if(is_single() && comments_open()) $output .='<script type="text/javascript"> var commentFormTitle = "'.__('Leave a comment','theme-text-domain').'"; </script>';
return $output;
}
add_filter('the_content','add_comment_title_variable');
Main JS file of my theme:
$(document).ready(function(){
// [...]
if(typeof(commentFormTitle) != 'undefined') $('#reply-title').html(commentFormTitle);
});
So, any hints how I can "individualize" the translation/textoutput of the comment form title without such dirty hack?
I kept it within the same question as other people who have the same problem with the comment reply link might be causing it the same way.
Thanks joschi81