Hi, iM, trying to hide the avatar in main navigation bar from logged out users
i have this from now and i’m stuck 😉// hidding avatar from logged out users
function bphelp_remove_avatar_for_logged_out_visitors() {
if ( ! is_user_logged_in() ) {
?>
<style type=”text/css”>
.main-navigation .navbar-nav–buddypress {
display: none;
}
</style>
<?php
}
}
add_action (‘bp_head’, ‘bphelp_remove_avatar_for_logged_out_visitors’);
?>I put it in bp-custom, thank you for any help!
Hi,
Welcome to BuddyDev forums.can you please share the screenshot. From the above code it is not clear what the code is trying to hide and where.
Regards
BrajeshHello,
yes sure, i may be a template probleme also and i will investigate on that to, but here’s a screen shot
…ops, can’t see where i can put a screen shot 😉- This reply was modified 5 years ago by Pierre Laroche.
Hi,
Thank you for the reply.you can use a service like
https://postimages.org/
or imgurand share the link here.
Regards
Brajesh
You must be logged in to reply to this topic.