Archived topic
Author Avatar not showing image
4 replies · Started by Khaled on March 31, 2020
Hi,
I'm using the following code to show author box with element. With the same code one website working fine but another website not displaying author image. Please have a look.
I also use following css:
.author-box {
padding: 3%;
padding-bottom: 10px;
font-size: 0.9em;
background-color: #fff;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border-radius: 5px;
box-shadow: rgba(23, 43, 99, .14) 0 7px 28px !important;
}
.author-box .avatar {
width: 250px;
height: auto;
margin-right: 30px;
}
h5.author-title {
margin-bottom: 0.1em;
font-weight: 600;
}
.author-description {
line-height: 1.6em
}
.author-links a {
margin-top: -1.5em;
font-size: 2em;
line-height: 2em;
float: left;
}
@media (max-width: 768px) {
.author-box {
padding: 20px;
padding-bottom: 30px;
margin-top: 100px;
flex-direction: column;
text-align: center;
}
.author-box .avatar {
margin-right: 0;
margin-bottom: 10px;
width: 100%;
margin-top: -35px;
}
.author-box .avatar img {
max-width: 100px;
}
.author-links a {
float: none;
align-self: center;
}
.author-description {
margin-bottom: -1.1em;
}
}
Hi there,
couple of things that come to mind:
1. Plugin conflict - test by disabling other plugins.
2. Is Avatar Display checked in Dashboard > Settings > Discussion
How silly of me!!! I was looking to turn on avatar under user profile. I'm sure that is the case.
Thanks!
You're welcome
Thanks