Jetpack Comments – Text box expand with every character
-
I really enjoy using Jetpack plugin, but right now I have an issue with the Comments.
Problem is that the text box (where you input your comment) is expanding with every character. It works fine on the first page (home page of the blog) but not on the other.
Check it here if you don’t understand what I mean:
https://blogwithphotos.net/stairs-to-dawn/
There is Comment button under the photo. Try to type some comment and you’ll see what’s happening.You’ll see that if you’re going to the main page https://blogwithphotos.net is working fine.
Maybe it has something (as is working on the homepage) to do with the following code in the functions.php:
function gpp_comment_toggle_script() {
$doc_ready_script = ‘
<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery( “.comments-link a” ).click( function(e){
‘;
//Homepage doesnot need preventDefault and single page does
if(!is_home()){
$doc_ready_script .= ‘e.preventDefault();’;
}$doc_ready_script .= ‘
if (jQuery(“#comments”).is(“:visible”)) {
jQuery( “#comments” ).slideUp( 500 );
} else {
jQuery( “#comments” ).slideDown( 500 ).scrollView();
}
});’;/* lazy loader for archive page */
if(is_page_template(‘page-archive.php’)){
$doc_ready_script .= ‘jQuery(“pre.lazy”).lazyLoad();’;
}
$doc_ready_script .= ‘
});
</script>’;
echo $doc_ready_script;}
I tried already to disable all plugins, but does not help. I assume that there is somekind of JS conflict, but I cannot really figure it out what.
Any help will be appreciated.
Thank you!
- The topic ‘Jetpack Comments – Text box expand with every character’ is closed to new replies.