Support

Home Forums Event Espresso Premium Gravatar Attendee Grid – Square-up Images?

Gravatar Attendee Grid – Square-up Images?

Posted: April 1, 2017 at 9:41 am

Viewing 5 reply threads


gdtech

April 1, 2017 at 9:41 am

In reference to https://eventespresso.com/topic/attendee-gravatar-shortcode/ ….

content-espresso_event_attendees.php works great. However, I have one attendee who somehow got his FB avatar uploaded and it’s rectangular and looks bad next to all the squares in my grid. I see where I can edit the size of the avatar. Is there any way to make it square by modifying it?

if ( $show_gravatar ) {
	$gravatar = get_avatar( $contact->email(),
		(int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 )
		);
} else {
	$gravatar = '';
}
?>

<?php echo $gravatar?>


gdtech

April 1, 2017 at 9:55 am

Also…is there a way to show this grid on another website?


Tony

  • Support Staff

April 3, 2017 at 7:51 am

Hi there,

get_avatar() is a WP core function, we add filter that allows you to set the size used by EE, the size passed (by default 32) is used for both width and height, so your images should already be square.

Can you link me to the page so I can view this?

Also…is there a way to show this grid on another website?

You would need to use an iFrame on the other site to dipslay it there. You could create a blank page template to load the attendee list and then use that page template for the one you load within the iframe.

For example:

http://stackoverflow.com/questions/10700404/display-contents-of-an-wordpress-page-in-an-remote-iframe


gdtech

April 3, 2017 at 2:59 pm

https://registerstate.com/ar/boys/ now has 2 rectangles. Bummer.


Tony

  • Support Staff

April 3, 2017 at 3:53 pm

Its your theme setting the height to auto – http://take.ms/Ybvdi

You can use some CSS to force the size:

img.avatar-32.photo {
    height: 32px;
}

We recommend using either the My Custom CSS or Reaktiv CSS Builder plugins to add custom styles such as these.


gdtech

April 4, 2017 at 10:24 am

Perfect! Thanks!!

Viewing 5 reply threads

The support post ‘Gravatar Attendee Grid – Square-up Images?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso