yashmistrey
Member
Posted 10 months ago #
i want to customize my theme comment
i tried to replace comments.php (twentyeleven theme) to my theme's comments.php file
i got an error
Warning: call_user_func(twentyeleven_comment) [function.call-user-func]: First argument is expected to be a valid callback in
E:\------------\wwwroot\wp-includes\comment-template.php on line 1334
please help
you also need to copy the comment callback function into functions.php of your theme;
copy it from functions.php of twenty eleven (line 485 to 572):
if ( ! function_exists( 'twentyeleven_comment' ) ) :
/**
* Template for comments and pingbacks.
*
...
etc.
...
esc_html( get_the_author() )
);
}
endif;
yashmistrey
Member
Posted 10 months ago #
thanks friend !
you mean to paste these code into function.php
https://gist.github.com/1113826
yes - that is the right code.
yashmistrey
Member
Posted 10 months ago #
how can i merge this code into comments.php could it possible ?
i am not so smart in php so if you can tell me, if possible
thanks