• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add addition image size options to Genesis – User Profile widget

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add addition image size options to Genesis – User Profile widget

This topic is: not resolved

Tagged: avatar, Genesis User Profile, gravatar, image, size, user profile, widget

  • This topic has 3 replies, 3 voices, and was last updated 10 years, 10 months ago by jdaviescoates.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 18, 2014 at 4:55 am #114779
    jdaviescoates
    Member

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

    Thanks in advance!

    http://omexchange.staging.wpengine.com
    July 21, 2014 at 9:11 am #115187
    Brad Dalton
    Participant

    You can add them but they will be lost when Genesis updates therefore this solution is NOT recommended and NOT best practice.

    $sizes = array( __( 'Small', 'genesis' ) => 45, __( 'Medium', 'genesis' ) => 65, __( 'Large', 'genesis' ) => 85, __( 'Extra Large', 'genesis' ) => 125 ), __( 'Super Large', 'genesis' ) => 250 );
    

    Line 152 genesis > lib > widgets > user-profile-widget.php

    Another option is to use the filter

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

    Tutorials for StudioPress Themes.

    July 21, 2014 at 9:24 am #115193
    JanHoek
    Participant

    A bit easier in your childs functions.php

    add_filter( 'genesis_gravatar_sizes', 'jan_user_profile' );
    function jan_user_profile( $sizes ) {
    	$sizes['Extra Large Image'] = 340;
    	return $sizes;
    }

    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

    July 24, 2014 at 9:25 am #115705
    jdaviescoates
    Member

    Thanks Jan,

    That did the trick nicely 🙂

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble