Learn how change the size of the author box photo in Genesis Framework child themes by code.
By default, Genesis child themes display the Gravatar image next to the description inside the author box.
And the photo dimensions depend on the child theme you use. In the case of Genesis Sample, for example, it is 70×70 pixels.
Do you prefer to customize the size of this image as you wish?
Genesis has a filter to make it easy for you.
Snippet to resize the photo in the author box
Add the following code fragment at the end of the functions.php file:
To see this and another 919 code snippets of this website, login or subscribe here.
In this case, the dimensions of the image will be 80×80 pixels, but you can adapt them to your needs.
However, if you use a much larger or smaller size than the original, it is likely that you will need to make CSS adjustments so that it is displayed correctly. Keep this in mind.
You can also check the rest of the tutorials in the author box in Genesis Framework for other modifications. For example, do you want to change the title of the author box? There you have. 😉
Conclusion
As you can see, by adding a few simple lines of code you can resize the image inside the author box in any Genesis child theme.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂