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

XF 1.2 sidebar visitorPanel Avatar how to resize

TsinJu

Well-known member
#1
I am wondering how to change the Size of the Sidebar Visitorßs Avatar.
I wanted to change it via CSS, butr all i found is

.sidebar .visitorPanel .avatar
{
@property "visitorPanelAvatar";
margin-right: 5px;
float: left;
@property "/visitorPanelAvatar";

width: auto;
height: auto;
}

.sidebar .visitorPanel .avatar img
{
width: @visitorPanelAvatar.width;
height: @visitorPanelAvatar.height;
}
It looks like the Size is controlled with
<xen:avatar user="$visitor" size="m" img="true" />
s is to small, for what i need it..... is there a way to change the Avatar Size via Style Properties?
Or do i need it in Extra.css with ".sidebar .visitorPanel .avatar img"?
Thanks
 
#2
you can set in styles properties> general> avatar >
Miscellaneous - width and Height.

or in extra.css

.sidebar .visitorPanel .avatar img{width:50px; height:50px;}

if it does not work add !important

.sidebar .visitorPanel .avatar img{width:50px!important; height:50px!important;}
 

TsinJu

Well-known member
#3
I now did it in
Style Properties: Sidebar -> Visitor Panel Avatar
cause changing the general Setting would change all Avatar sizes.