Avatar class for front page and profile page
-
Hi;
User avatar displayed at front page and on top of profile cover page use same CSS:
#main img.avatar { ..... }
how can I use a separate CSS class for the profile avatar? I checked the cover.php file and find the code lines to display the uploaded user cover page with the uploaded user avatar but I don’t see a way to modify or add a class that will allow me to show the avatar a bit differently.
<div id="header-cover-image" <?php if ( $display_cover_image && $cover_image ) : ?>style="background-image: url(<?php echo esc_url( $cover_image ); ?>);"<?php endif; ?>> <?php if ( $display_avatar ) : ?> <div id="header-avatar-container"> <a>user ) ); ?>"> <?php echo get_avatar( $data->user->ID, 128, ); ?> </a> </div> <?php endif; ?> </div>
Any suggestions?
Thank you much.
Lode
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Avatar class for front page and profile page’ is closed to new replies.