Title: Avatar size increasing
Last modified: August 19, 2016

---

# Avatar size increasing

 *  [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * (@jaycee1981)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/)
 * Hello!
 * I would like to change the size of avatars on comments.
 * my style.css:
 *     ```
       div.avatar { position: relative; float: left; margin: 0 10px 0 0; }
               div.avatar span.overlay { display: block; position: absolute; top: 0; left: 0; width: 41px; height: 41px; background:
       ```
   
 * I’ve tried to change 41px to bigger but nothing has changed.
 * My comments.php
 *     ```
       <?php wp_list_comments(array('type'=>'comment','callback'=>'mytheme_comment','avatar_size'=>50,
        'reply_text'=>'Reply')); ?>
       ```
   
 * I’ve changed this value from 50 to bigger, but with no luck.
 * Can anyone tell me what should i change to get bigger avatar?
 * Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * (@jaycee1981)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011105)
 * any suggestion???
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011106)
 * without seeing the problem, it is hard to tell which factor is restricting the
   size of your avatar.
 * maybe you need to make both changes at the same time?
 * if you post a link to your site, pointing to a post with comments and avatars,
   someone might be able to check this.
 *  Thread Starter [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * (@jaycee1981)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011107)
 * okay here’s the link:
    [](http://www.takethatfansite.com/%C3%A1ltal%C3%A1nos-besz%C3%A9lget%C3%A9sek-5-2011-03-31/comment-page-6/#comment-13396)
 *  Thread Starter [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * (@jaycee1981)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011108)
 * [http://www.takethatfansite.com/%C3%A1ltal%C3%A1nos-besz%C3%A9lget%C3%A9sek-5-2011-03-31/comment-page-6/#comment-13396](http://www.takethatfansite.com/%C3%A1ltal%C3%A1nos-besz%C3%A9lget%C3%A9sek-5-2011-03-31/comment-page-6/#comment-13396)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011109)
 * that is the section from the html code in the browser;
 *     ```
       <div class="avatar">
       				<img src="/avatar-avatar.jpg" class="avatar avatar-40 avatar-default" style="width: 40px; height: 40px;" width="40" height="40">
       ```
   
 * a:
    there is an inline style with the avatar; maybe defined in ‘mytheme-callback()’
   in functions.php?
 * b:
    the avatar size seems to be 40px; have you changed this here: `'avatar_size'
   =>50`
 *  Thread Starter [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * (@jaycee1981)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011115)
 * Hello!
 * Here’s my functions.php
 *     ```
       <?php 
   
       require_once(TEMPLATEPATH . '/epanel/custom_functions.php'); 
   
       require_once(TEMPLATEPATH . '/includes/functions/comments.php'); 
   
       require_once(TEMPLATEPATH . '/includes/functions/sidebars.php'); 
   
       load_theme_textdomain('Memoir',get_template_directory().'/lang');
   
       require_once(TEMPLATEPATH . '/epanel/options_memoir.php');
   
       require_once(TEMPLATEPATH . '/epanel/core_functions.php'); 
   
       require_once(TEMPLATEPATH . '/epanel/post_thumbnails_memoir.php');
   
       function et_create_dropcaps($post_text){
       	global $shortname;
   
       	if ( get_option($shortname . '_dropcaps') == 'false' ) return $post_text;
   
       	$post_content_text = trim($post_text);
       	$post_content_firstletter = $post_content_text[0];
       	$post_content_text[0] = '';
   
       	return '<span class="drop-caps">' . $post_content_firstletter . '</span>' . $post_content_text;
       }
   
       function register_main_menus() {
       	register_nav_menus(
       		array(
       			'primary-menu' => __( 'Primary Menu' )
       		)
       	);
       }
       if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );
   
       if (class_exists('Walker_Nav_Menu')) {
       	class description_walker extends Walker_Nav_Menu
       	{
       		function start_el(&$output, $item, $depth, $args) {
       			global $wp_query;
       			$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
   
       			$class_names = $value = '';
   
       			$classes = empty( $item->classes ) ? array() : (array) $item->classes;
   
       			$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
       			$class_names = ' class="'. esc_attr( $class_names ) . '"';
   
       			$output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
   
       			$attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';
       			$attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';
       			$attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';
       			$attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';
   
       			$prepend = '<strong>';
       			$append = '</strong>';
   
       			$description  = ! empty( $item->description ) ? esc_attr( $item->description ) : '';
       			if (strlen($description) > 22) $description = substr($description,0,21);
   
       			$item_output = $args->before;
       			$item_output .= '<a'. $attributes .'>';
       			$item_output .= $args->link_before .$prepend.apply_filters( 'the_title', $item->title, $item->ID ).$append;
       			$item_output .= '<span>' . $description. '</span>' . $args->link_after;
       			$item_output .= '</a>';
       			$item_output .= $args->after;
   
       			$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
       		}
       	}
       }
   
       $wp_ver = substr($GLOBALS['wp_version'],0,3);
       if ($wp_ver >= 2.8) include(TEMPLATEPATH . '/includes/widgets.php'); ?>
       ```
   
 * b) `<?php wp_list_comments(array(‘type’=>’comment’,’callback’=>’mytheme_comment’,’
   avatar_size’=>50,
    ‘reply_text’=>’Reply’)); ?> `
 * – This one is in my comments.php
 * Yeah, i Tried to change it here, but nothing change when save the file

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Avatar size increasing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [jaycee1981](https://wordpress.org/support/users/jaycee1981/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/avatar-size-increasing/#post-2011115)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
