• 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

Genesis User profile picture

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 › Genesis User profile picture

This topic is: resolved

Tagged: lifestyle Pro

  • This topic has 14 replies, 4 voices, and was last updated 7 years, 9 months ago by Susan.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • June 17, 2015 at 11:42 am #156540
    rawfoodsgirl
    Member

    The front page user profile about me picture on my website was done using the genesis user profile

    I don't like the small circle. Is their another widget you would recommend showing a larger picture?

    http://rawfoodsgirl.com
    June 17, 2015 at 12:17 pm #156543
    Christoph
    Member

    Hi,

    you can add a custom image size to the widget
    http://www.calvinmakes.com/add-new-gravatar-size-in-genesis-user-profile-widget/

    If you don't like the circle around the image, you can remove that by deleting or commenting out border-radius: 50%; around line 630 of the style.css

    .avatar {
        border-radius: 50%;
        float: left;
    }

    Alternatively, you could use Jetpacks image widget but then you wouldn't have the text next to your image.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    June 17, 2015 at 2:09 pm #156564
    rawfoodsgirl
    Member

    Great Christoph I got the circle to go away

    I added this codeo my php file tusing your link but messed up something so reverted back to original.

    should i add this code at the top or bottom of my php and is there something here i should not add to that file. my website did not like it?
    ------------------------------------------------------

    <?php
    /**
    *
    * Modify the size of the Gravatar in the User Profile Widget
    *
    * @author Calvin Koepke
    * @since 1.0.0
    */
    add_filter( 'genesis_gravatar_sizes', 'ck_user_profile' );
    function ck_user_profile( $sizes ) {
    $sizes['Extra Large Image'] = 340;
    return $sizes;
    }

    June 17, 2015 at 2:11 pm #156565
    Christoph
    Member

    Glad the circle is gone 🙂

    Do not include <?php and everything should work.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    June 17, 2015 at 7:51 pm #156610
    rawfoodsgirl
    Member

    darn it got this error after changing - i'm sure i am doing something simple wrong.

    error msg on website after changing

    Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/content/20/9860120/html/wp-content/themes/lifestyle-pro/functions.php on line 12

    -_________________________
    this is what i added (i didn't add the <?php it was already there I added the other after it at very top of php file

    <?php

    /**
    *
    * Modify the size of the Gravatar in the User Profile Widget
    *
    * @author Calvin Koepke
    * @since 1.0.0
    */
    add_filter( ‘genesis_gravatar_sizes’, ‘ck_user_profile’ );
    function ck_user_profile( $sizes ) {
    $sizes[‘Extra Large Image’] = 340;
    return $sizes;
    }

    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );

    June 17, 2015 at 7:55 pm #156612
    Christoph
    Member

    Try adding the code at the bottom of the file.
    Right now it tries to execute before anything Genesis is started.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    June 17, 2015 at 8:01 pm #156615
    rawfoodsgirl
    Member

    Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/content/20/9860120/html/wp-content/themes/lifestyle-pro/functions.php on line 134

    line 134 is

    $sizes[‘Extra Large Image’] = 340;

    June 17, 2015 at 9:02 pm #156619
    Christoph
    Member

    I´m sorry. Code is very finicky. You have to make sure you are using straight ' or " and not ´ or ` or ’

    I just checked the code on a test site and it doesn't return an error message.

    /**
     *
     * Modify the size of the Gravatar in the User Profile Widget
     *
     * @author Calvin Koepke
     * @since 1.0.0
    */
    add_filter( 'genesis_gravatar_sizes', 'ck_user_profile' );
    function ck_user_profile( $sizes ) {
    	$sizes['Extra Large Image'] = 340;
    	return $sizes;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    June 28, 2015 at 3:38 pm #157769
    rawfoodsgirl
    Member

    would you happen to know of a widget to make it really simple?

    June 28, 2015 at 3:39 pm #157771
    Susan
    Moderator

    Add an image widget 🙂

    June 28, 2015 at 3:46 pm #157777
    rawfoodsgirl
    Member

    any particular suggestions? their are tons and don't want to mess up my website (again)

    June 28, 2015 at 3:54 pm #157778
    Brad Dalton
    Participant

    Using a code editor and FTP, copy the code from the view raw link in the Gist below and paste it at the end of your child themes functions.php file.

    Note: When embedding code in a webpage, use one of these methods otherwise it may break the code.


    Tutorials for StudioPress Themes.

    June 28, 2015 at 4:11 pm #157781
    rawfoodsgirl
    Member

    great installed the image widget thanks Susan.

    can you tell me how to write a code in the widget to have them click read here and it take them to another page

    in the image widget under caption:

    Let me share with you what I have learned from some of the most well known rawfoodist and health enthusiasts in the world. Click Image for more..

    ----------

    I would like to say read more instead of click image but how do i add code ?

    this is the page i would like them to be able to click too

    http://rawfoodsgirl.com/about/

    June 28, 2015 at 4:22 pm #157782
    rawfoodsgirl
    Member

    susan first part of this you solved should i make a new comment for the addition above asking about how to connect a page to the caption area?

    June 28, 2015 at 6:08 pm #157785
    Susan
    Moderator

    the html to add "read more" would be:

    (replace my site with the URL of the page you want to send people to...)

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Genesis User profile picture’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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