recent comments and gravatar
hi,I want to change the Recent Comments code ,make it like the plugin WP-RecentComments.baceuse I think the BFA Recent Comments is not so easy to read and I can`t have the Gravatar. So I find these codes,they woked well on other theme,but I don`t know where to insert in this theme. ok, the codes are here
It`s what they say :copy these code to sidebar.php Code:
<h3><?php _e('Recent Comments'); ?></h3> first name a folder "avatar" at the same level as directory wp-content ,set 755.Use a default.jpg as the default gravatar find function mytheme_comment($comment, $args, $depth) in comments.php or functions.php as this Code:
<?php echo get_avatar($comment,$size='50',$default='<path_to_url>' ); ?> Code:
<?php I don`t want to ues plugin WP-RecentComments and gravatar cache .please help me I also hope in new version the BFA Recent Comments can be more beautful. |
Why not style the BFA Recent Comments widget or turn off the avatar function on the WP-RecentComments widget? Adding code to the theme files is something I try to never do unless it's a bug fix as later upgrades are more cumbersome.
|
All times are GMT -6. The time now is 10:02 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.