News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Changing the size of the avatar in index page

Started by TiPsY, August 19, 2011, 10:41:26 AM

Previous topic - Next topic

TiPsY

Well, i think the title explains it all

I want to change the size of the avatar in the index page to 100x100 but the only thing i found in index.template is this


// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';


Any ideas?



Quick edit!! Sorry for the thread, i found the solution in index.css
Please delete the thread

IchBin™

No deleting necessary. However, it helps if you post exactly what the answer was so that the next person who finds your topic through a search would have their answer.
IchBin™        TinyPortal

TiPsY

Aye,

it was the div.user p.avatar img inside index.css located at Themes/yourthemename/css

div.user p.avatar img
{
   width: 100px;
   height: 100px;
}

width and height defines the desired pixels

Jerri Blank

I had the same problem, but that class wasn't in the CSS already - I had to add it.

Advertisement: