Community Forums › Forums › Archived Forums › Design Tips and Tricks › Genesis User profile picture
Tagged: lifestyle Pro
- This topic has 14 replies, 4 voices, and was last updated 7 years, 9 months ago by
Susan.
-
AuthorPosts
-
June 17, 2015 at 11:42 am #156540
rawfoodsgirl
MemberThe 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.comJune 17, 2015 at 12:17 pm #156543Christoph
MemberHi,
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.
June 17, 2015 at 2:09 pm #156564rawfoodsgirl
MemberGreat 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 #156565Christoph
MemberGlad the circle is gone 🙂
Do not include
<?php
and everything should work.
June 17, 2015 at 7:51 pm #156610rawfoodsgirl
Memberdarn 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 #156612Christoph
MemberTry adding the code at the bottom of the file.
Right now it tries to execute before anything Genesis is started.
June 17, 2015 at 8:01 pm #156615rawfoodsgirl
MemberParse 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 #156619Christoph
MemberI´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; }
June 28, 2015 at 3:38 pm #157769rawfoodsgirl
Memberwould you happen to know of a widget to make it really simple?
June 28, 2015 at 3:39 pm #157771Susan
ModeratorAdd an image widget 🙂
June 28, 2015 at 3:46 pm #157777rawfoodsgirl
Memberany particular suggestions? their are tons and don't want to mess up my website (again)
June 28, 2015 at 3:54 pm #157778Brad Dalton
ParticipantUsing 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.
June 28, 2015 at 4:11 pm #157781rawfoodsgirl
Membergreat 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
June 28, 2015 at 4:22 pm #157782rawfoodsgirl
Membersusan 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 #157785Susan
Moderatorthe html to add "read more" would be:
(replace my site with the URL of the page you want to send people to...)
-
AuthorPosts
- The topic ‘Genesis User profile picture’ is closed to new replies.