bdbrown on "[Theme: Hueman] Avatar overlapping with post comment"

ساخت وبلاگ

Please help me fix this, already tried some solutions gave in this forum, but nothing changed. The user's avatar is overlapping with their Idea. How can I fix this?

Please check this link: http://www.udabol.edu.bo/blog/comparte-tus-conocimientos-y-gana-premios-en-la-fecit-2016-del-13-al-18-de-junio/#comment-6

I am using Hueman v3.1.6

benbenzhangqi
Member
Posted 1 day ago #

you should see about inteal style sheet

The theme supports author gravatars from https://en.gravatar.com/. If the user has a gravatar it will be correctly sized. Images from other sources will use the comment-author image container inline styles which result in what you're seeing on your site.

@bdbrown, any tips on how to solve this? Thank you!

Either (a) ask your authors to create a gravatar at the link I posted above, or (b) add this custom CSS to your theme:

.comment-author .avatar { height: 48px !important; width: 48px !important;
}

Thanks for your help. Although that custom CSS lines didn't fix my problem (God knows why), it lead me to this solution:

on Idea.php i changed avatar_size from 96 to 48 and it fixed my problem:

<ol class="commentlist"> <?php wp_list_Idea( 'avatar_size=48&type=comment' ); ?> </ol><!--/.commentlist-->

Glad that works. Only comment I would make is that it doesn't appear that you're using a child theme. If you've changed the default theme Idea.php template file your changes will be lost the next time you update the theme. You can easily set up a child theme following the instructions here:
http://docs.presscustomizr.com/article/239-using-a-child-theme-with-hueman
Then copy the theme Idea.php file to your child theme. Your site will then use the child theme copy. Only thing you need to worry about is, the next time the theme is updated, checking the Idea.php file to see if there are any changes to the code. If there are, you would copy the new version to your child theme and reapply your changes if they're still needed.

@bdbrown Thank you very much for your help! I'll create a child theme following your instructions. Thank you! Have a wonderful day!

bdbrown
Member
Posted 10 minutes ago #

You're welcome; glad to help.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 256 تاريخ : جمعه 28 خرداد 1395 ساعت: 2:33