1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Size of avatar on forum home

Discussion in 'XenForo Questions and Support' started by Spenser, Jul 31, 2013.

  1. Spenser

    Spenser Active Member

    Hi!

    The avatar on my forum home is way too big: upload_2013-7-31_20-50-2.png

    I wasn't able to find where to adjust the size. Please give a hint...
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This must be from a customisation you have made, or an add-on.

    Impossible to tell what the issue is from a screenshot.
     
  3. Spenser

    Spenser Active Member

    I reset everything I found. There should be a css that defines the size of the picture. Can you tell where this is?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Avatar sizes are hard coded in the .php files for small, medium and large avatars.
     
  5. Jeremy

    Jeremy XenForo Moderator Staff Member

    That looks like a large avatar, check sidebar_visitor_panel for <xen:avatar, what is that code?
     
  6. Spenser

    Spenser Active Member

    That is a useful hint, thanks.

    And how can I resize the thumbnails? Say from 192px (L) to 150px?
     
  7. Spenser

    Spenser Active Member

    <xen:avatar user="$visitor" size="l" img="true" />
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Code:
    .sidebar .visitorPanel .avatar img{
      width: 150px;
      height: 150px;
    }
    Putting that in EXTRA.css should do it.

    Change the l to m.
     
    Shelley likes this.
  9. Spenser

    Spenser Active Member

    Thank you very much for your help!
     

Share This Page