Support Forum

Avatars in topic view

41 Answers

New Answer

IK Ike
Ike
Member

Yes that’s all OK, but my point was if you are running a child theme I’m not seeing it loaded for that specific rule..

So where did you put the code:

#spMainContainer .spTopicPostSection .spPostUserAvatar img {  width: 100px; }

 I.e what file, where in the file, and could you post an excerpt of it or a screenshot?

AT Alex T
Alex T
Member

Ike said
Yes that’s all OK, but my point was if you are running a child theme I’m not seeing it loaded for that specific rule..

So where did you put the code:

 

#spMainContainer .spTopicPostSection .spPostUserAvatar img {  width: 100px; }

 

 I.e what file, where in the file, and could you post an excerpt of it or a screenshot?

That’s in Reboot.php.  It’s in the screenshot above. 

 

Here is what it looks like in the code:

#spMainContainer .spTopicPostSection .spPostUserRank img,
#spMainContainer .spTopicPostSection .spPostUserSpecialRank img {
margin: auto;
}

#spMainContainer .spTopicPostSection .spPostUserAvatar img {
width: 100px;
}

#spMainContainer .spTopicPostSection .spPostUserWebsite img,
#spMainContainer .spTopicPostSection .spPostUserTwitter img,

IK Ike
Ike
Member

That is strange.. Just repeated the process and works fine locally.

Could you try adding it to the end of the parent themes stylesheet?

AT Alex T
Alex T
Member

Ike said
That is strange.. Just repeated the process and works fine locally.

Could you try adding it to the end of the parent themes stylesheet?

I noticed that it won’t scale when it is hosted locally (uploaded directly), but it does work if it is hosted somewhere else?  I used the same file and had it uploaded direct from the profile section=does not scale.  When I uploaded it to WP and entered it into the remote area, it scales it correctly.  

AT Alex T
Alex T
Member

Nevermind what I just typed.  I forgot I had saved it as a 100 x 100 png, instead of the 50 x 50 one.  

AT Alex T
Alex T
Member

Ike said
That is strange.. Just repeated the process and works fine locally.

Could you try adding it to the end of the parent themes stylesheet?

Do you mean at the end of the reboot.php?  Not the child, correct?  

Like this:

@media screen and (max-width: 379px) {
#spMainContainer #spLastVisitLabel {
display: none;
}
}

#spMainContainer .spTopicPostSection .spPostUserAvatar img {
width: 100px;
}

/* ====================================================================================
If you DO make style changes (see Warning above) then ensure they are made ABOVE
this comment
================================================================================= */

 

AT Alex T
Alex T
Member

Ike said
Yes that should do. Does it work?

Ok, now it works!  

IK Ike
Ike
Member

Strange, not sure why it wouldn’t work in the child theme stylesheet. I’ve just tried again, fresh child theme framework. I copied your code from above and pasted it into the child theme stylesheet, with nothing else in there and it works perfectly.

Can you just check to see if any other CSS in your child theme stylesheet is being applied properly?

AT Alex T
Alex T
Member

Ike said
Strange, not sure why it wouldn’t work in the child theme stylesheet. I’ve just tried again, fresh child theme framework. I copied your code from above and pasted it into the child theme stylesheet, with nothing else in there and it works perfectly.

Can you just check to see if any other CSS in your child theme stylesheet is being applied properly?

Actually, no…I had to create the reboot.php copy to stick in the child theme just for this.  

IK Ike
Ike
Member

Now I’m confused! So where had you put it before when it didn’t work?

AT Alex T
Alex T
Member

Ike said
Now I’m confused! So where had you put it before when it didn’t work?

In reboot.php in the child. 

IK Ike
Ike
Member

Sorry I’m lost there, but is it working OK?

If not please elaborate, I started to get lost when you were talking about creating the reboot.php copy..

AT Alex T
Alex T
Member

Ike said
Sorry I’m lost there, but is it working OK?

If not please elaborate, I started to get lost when you were talking about creating the reboot.php copy..

It works, but it doesn’t work if it’s just in the area where you told me to place it in the reboot.php in the child theme.  It only started working when I placed it in the bottom section in the main reboot.php.  

YS Yellow Swordfish
Yellow Swordfish
Member

This suggests to me that your ‘child’ theme is not set up properly. Made more difficult to discuss and describe because it has the same name. Would you agree @ike ?