Forum Replies Created
-
Author
-
BebunchParticipant
Hi,
Thanks !
I found another way by using the standard WP “get_avatar” filter : it gives the user Id as an argument and I’m able to get the user role and add my now class to the avatar.
COPY CODEadd_filter('get_avatar','change_avatar_css', 10, 5); function change_avatar_css($class, $id_or_email, $size, $default, $alt) { $class = str_replace('class="avatar', 'class="avatar-bs-role-'.bs_user_customrole($id_or_email).' avatar', $class) ; return $class; }
BebunchParticipantHi Laura,
Thanks for your answer. BuddyPress Verified does part of the job : it only works on the member profile page. It seems that no badge is displayed on avatar in forums or activity feed.
Do you use a custom Kleo function to generate the avatar ? Do you know which function (custom, WP, BuddyPress, bbPress) I should rewrite (or filter) ?
Thanks.
BebunchParticipantHi,
I found my problem : I was modifying the “comments.php” file and I needed to work on “entry.php”…
Sorry for this :-/
BebunchParticipantYes I tried, but no change.
Is there a php file to create in the child theme in order to declare the new comment.php template ? I couldn’t find anything but I may have missed something
BebunchParticipantHi,
Thanks for your answer. I would have expected something more simple 🙂
I tried “Content Aware Sidebars” but it seems it does not work on all pages. For exemple, it seems ok on the main blog page, but not on forums…
I’ll try a conditional widget plugin.
BebunchParticipantHi,
I found why : I used the “Forum” menu from the “BuddyPress” section. This menu only shows to contacted users. I created a custom menu from the “Link” section and it works fine !
BebunchParticipantHello,
I’m not really comfortable with giving an admin access to my website… How can we do this another way ?
Furthermore, why do you need an admin access for this ?
Thanks.
-
AuthorPosts