Forum Replies Created
-
AuthorPosts
-
marcsaffar
ParticipantHello,
I did some work since :restore default css here :
.js .nav-primary {
display: none;
position: relative;
}
and modified this line about 1564 :
/* Header Menu
--------------------------------------------- */.nav-primary {
/*marc saffar ajoute*/
position: -webkit-sticky;
position: sticky !important;
top: 0;
z-index: 15;
/*fin de l'ajout*/
background-color: #063B6C;
padding-left: 30px;/*ajouté par marc saffar*/
clear: none;
float: left;/*marc saffar était right*/
width: 100%;/*marc saffar était auto*/
}It seems to work a little bit better with same problem less often but it is not perfect.
Also I tested in a previous version of genesis sample and there is no problem at all. They changes some code since but it is not well documented at all.
Still need help.
marcsaffar
ParticipantSorry here is the link
https://uhjfrance.marcsaffar.website/_tc/trial.php?t=63e110e5February 23, 2022 at 11:25 am in reply to: Author box : Display Avatar for users without user email #504752marcsaffar
ParticipantSorry. not getting replies when i subscribe to existing topics.
Me neither, they should fix it 😉 anyway thanks for your answers.
And, you can also filter get_avatar and use the pre_get_avatar filter.
I tried but unsuccessfully. Maybe I did note do correctly do the add_filter…
.And, you can also use add_filter( 'avatar_defaults' to add a default image.
Thanks but I don't want a default image 😉
January 31, 2022 at 9:16 am in reply to: Author box : Display Avatar for users without user email #504683marcsaffar
ParticipantHello Brad,
Thank you for your answer.The problem is I will receive some texts from authors I won't know their emails and it will be long and difficult to get these email adresses.
Finally I found this in Genesis > structure > post.php
$gravatar = get_avatar( get_the_author_meta( 'email', $user_id ), $gravatar_size );
When I change 'email' by 'ID' it works how I want for every users even without email.
I'd preferred that function would be filterable. Now I have to pay attention in case of future Genesis upgrade.
marcsaffar
ParticipantHello Victor,
Thanks for that simple and useful idea !
I should have thought about it 😉 -
AuthorPosts