The get_avatar()
function has many arguments, the last one is the interesting one, because you can pass additional classes, also described in the codex. So instead of
get_avatar( $comment, $args['avatar_size'] );
you could use
get_avatar( $comment, $args['avatar_size'], '', '', array('class' => 'myclass') );
Related Posts:
- Customize comment list markup
- child comments not displaying as nested
- Menu items description? Custom Walker for wp_nav_menu()
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- Strict Standards Error bootstrap navwalker
- Nested comments ignored for max per page in wordpress
- Any walker causes blank menu?
- Custom Comments – Parent / Nested Reply
- Why is styling comments so complex?
- Comment form not display properly?
- How to Auto Approve Comments on a Specific Page?
- comment_form() generates the wrong action url
- Extend walker – navigation, adding data attribute to a tag
- how to pull wordpress post comments to a external page
- Separated Comment from Post
- Remove “a href” from wp_list_comments()
- how to change WordPress menu markup/classes
- How to call wp_list_comments() with callback outside the loop
- Custom Nav Walker to show siblings and children of current branch?
- Create self-populating menu and add extra divs to the menu layout
- How to get comment meta values by post ID
- Compact pingback list with favicons
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- How to remove comment link title attribute?
- Comment entry screen shows even though “Allow Comments” is unchecked
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- WordPress empty Nav Menu error
- Jetpack Comments with fall-back
- WP_Comment_Query – Get comments and answers separately
- In this snippet how do I force the function to use gravatar rated G and fill in the alt for get_avatar()?
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Custom Navigation build using wp_nav_menu and walker
- Trackbacks not displaying
- Nested comments in WordPress theme
- Change the “Default Avatar” admin option via functions.php
- Comment status shows ‘closed’ in db, but it shows ‘open’ when i echo it
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- Same comments on all posts
- WordPress Comment spam issue
- WordPress comments title
- WordPress custom menu can’t show 3. level submenu
- Ajax Comment Upvotes – Votes don’t always register
- WordPress menu walker – Get parent item text inside end_lvl function
- Modify comments_popup_link output
- Woocommerce Theme Reviews / Comments
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- wp_update_comment not working
- Horizontal Navigation
- Strict Standards Error bootstrap navwalker
- Recent posts with comment count in “Sidebar” template [closed]
- Is there a Function so that the author of the comment can delete his own comment?
- How to override pluggable function in theme?
- Should we use get_template_part() in functions files instead of include_once?
- Reset positions of metaboxes in admin
- Remove the word ‘Categories’ from wp_list_categories
- Using Bootstrap in themes
- Add a dropdown to theme customizer
- design and development workflow
- How to control initial wp_head() output?
- How to change post thumbnail title and alt attributes to post title?
- Why might $input (Settings API) be coming through empty?
- add generated stylesheet from parent theme after child-themes style.css
- Creating Page Based on Category
- How to check if post has any tag?
- using wp_enqueue_script to attach jquery-ui
- Can not Remove Archives and Meta from Sidebar
- Get last modified date for menu link
- Change file name from wp_generate_attachment_metadata
- Change setting name in Customizer and keep the data
- CSS won’t style output of wp_nav_menu() correctly
- Creating multiple hooks for theme
- after_setup_theme, Global Variable and Theme Customizer
- How to make WP admin recognize a newly created child theme?
- Theme translation not applying
- How to add filter the post thumbnail before save in database?
- Custom theme development additional pages
- How to set the currently active page in the menu including parents
- What is the safe way to print tracking code / pixel code before tag or tag
- Acivate all themes multisite wide automatically
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Theme support title tag – how to replace the default WP separator (with a filter)?
- Why are some of my menu items not displaying on my menu?
- ajax response -1 in wordpress theme
- How to change footer credit text in Twenty Twenty One theme with a hook?
- How to override template files in parent theme?
- Output richtext metabox value
- Custom fields for custom post types
- How can I sort my loop based on meta data, using a form?
- What is the_permalink() on a category page?
- WordPress theme options checkbox default checked state
- Custom themes that won’t work when theme is changed
- WordPress Theme: What is the right way to put inline CSS loading from a CSS file
- Cold Fusion to WordPress
- How do I build a WordPress Profile/Author Header?
- get_posts is duplicating
- How to remove menu from WP-Admin menu
- apply_filters to featured image
- Feeds are showing where Post archive page should be
- I want to resize post featured image without cropping image. How?