The following worked for me:
<?php echo get_avatar( $comment, 60, '', '', $args = array( 'scheme' => 'https', 'class' => 'myclass' ) ); ?>
Your use of $args['avatar_size']
should be an int and you may have confused the use of this parameter (unless you have a variable $args, and it is an array).
Related Posts:
- How do I create a specific login page for a specific user?
- Display site admin profile fields in header.php
- Users table association with users_metadata table appears broken
- Limit number of users a role can create
- Change the “Default Avatar” admin option via functions.php
- making my theme multisite compatible?
- Custom Field Repeating When Using foreach
- How would I be able to use a font awesome icon as a user’s avatar?
- Filter to remove the default password on “Your Profile” page
- get_avatar() is not working in my custom theme
- Array for WordPress Avatar Size and Class
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- How do I make it super customisable?
- CSS not updating in browser when I change it
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- What’s the difference between home.php and index.php?
- get_template_part vs action hooks in themes
- Get url of thumbnail from the media uploader
- Check if user is admin by user ID
- How to use logout function on custom menu link?
- Google Maps not displaying in wordpress using Google Maps Javascript API
- When to use esc_url, esc_html, esc_attr, and friends?
- Hide certain pages / posts on wp-admin, show custom filter
- What is the purpose of an extra file for translation?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Problem with registering menus – What to do when other solutions aren’t working?
- Front End Post Submit Form
- add_theme_support(‘my-custom-feature’)
- Displaying wp menus by name without using theme locations
- Adding dashicon fonts to the admin of pre 3.8 installs
- How to add dynamic inline style?
- Change display of featured image for pages in twenty seventeen theme
- Do I really need the div class entry?
- How to manipulate “add media” pop-up
- WordPress Gutenberg Theme: Structure, Hierarchy and Custom Templates
- How to Take Ownership of a Theme
- WP User Query fails when searching meta queries and search columns
- Best way to start becoming a wordpress developer
- Why wp_head() function not loading style.css?
- How to make content editable from admin page?
- Redirect Old .php URLs to New WordPress Page
- Widget items disappearing
- Add submenus to Theme options menu
- create-guten-block in wordpress theme?
- WordPress navbar with logo in middle [closed]
- How to add new args data in $wp_customize->add_setting?
- Is the current Theme version number cached somewhere?
- PHP Template way of coding for wordpress theme development
- display menu with out list tags
- Custom form in theme template displaying internal server error upon submission
- How to show custom meta_key in each li of menu
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Issue with loading mobile specific custom single page layout in mobile
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Where to place template files?
- [&hellip appearing instead of […]
- Getting author URL outside the loop
- Replace single_template filter with what for default posts?
- How to have content scroll over background
- Need help with adding templates (archives and sitemap) to WordPress child theme
- save_post action doesn’t passing post id to my function as argument
- Is there Photo Categories?
- Why still output /wp-content/themes/twentynineteen?
- WordPress does not load page template or anything else, just empty page with header and footer
- Can I Create a Second Admin Level User Role?
- add shortcode support in customizer
- How to make my themes compatible with different WordPress versions?
- add jquery file if a certain page is included
- Exclude subcategory from wp_query
- Some doubts about WordPress handle the horizontal main menu visualization
- User meta and public function security
- How To Display Value from Theme Options Field in Front End Template?
- Archives and Categories in Custom Menu
- Custom search template is showing 404 when adding query string
- How do I restructure the comment HTML layout?
- How to set a custom URL for the iframe in the customize page
- How to render block editor in wp-admin custom pages programmatically
- Fetch data from database with dropdown selected option
- How do I keep my iframes responsive and scaled to fit their container?
- How to Show Next, Previous, and Page Numbers with wp_link_pages
- Let user publish posts on community page
- How to perform str_replace on the results of wp_list_pages
- How would I get this to work – send to post from thick box
- Safe way to echo wp_trim_words
- Show category and description
- How can I demonstrate themes well?
- How to update my own theme?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- WordPress custom jquery not found
- How to using custom DB tables
- Programatically add a page in WordPress
- Replacing static code in a template file with a sidebar and widgets?
- How to remove proudly created by WordPress in theme?
- How to load custom php file in WordPress themes
- Roll my own theme or customize an existing one [closed]
- WordPress search field won’t get wider