• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Custom Gravatar Image Sizes To Genesis User Profile Widget

Genesis includes a widget in the genesis > lib > widgets > user-profile-widget.php.

The code includes a filter you can use in your child themes functions file to add, remove or modify Gravatar image sizes.

$sizes = apply_filters( 'genesis_gravatar_sizes', $sizes );

Firstly, here’s what the widget looks like in the Widgets admin page after adding 2 additional image sizes:

genesis user profile widget

Based on the following question, i’ll give you the code you can use to add additional custom image sizes.

I would like to add some larger image size options to the Genesis – User Profile widget, anyone know how to do this?

genesis profile widget gravatar image

Here’s the PHP code you can copy from the view raw link in the Gist and paste at the end of your child themes functions file using a code editor.

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.