Sizing specific avatar img
-
Hi,
I have added the gravatar of logged in users to my menu/navbar by inserting the following code in header.php:
<div class="col-lg-1"> <a href="<?php bp_loggedin_user_domain(); ?>"> <?php bp_loggedin_user_avatar( 'type=full' ); ?> </a> </div>
This works just fine. However, I am not able to alter the CSS for that specific instance of the gravatar image. I could change style.css for the class “avatar user-1-avatar avatar-150 photo” but that would also change other avatar img (profile, etc). I could also add inline CSS (size=full&width=14&) but this is not what i want to do as i am trying to build a responsive site and would not be able to provide different parameters for small screens.
I thus need to somehow assign a CSS ID to <?php bp_loggedin_user_avatar( ‘type=full’ ); ?> and then edit that ID in style.css. Could anyone let me know how to do this?
FYI – i am not a developer but I usually figure things out … so any suggestions are welcome.
Best,
Yvan
- The topic ‘Sizing specific avatar img’ is closed to new replies.