How to Change WordPress default avatar
Also want to change the default wordpress avatar called Mystery Man? You want to use your own image instaed of it? Follow this tutorial and choose a avatar which is more suitable to your theme.
Open your theme’s functions.php file and add the following rules:
That’s all. Using the add_filter function you’ve changed the avat_default function a little bit, with newgravatar function. You’ve added your new avatar in default wordpress avatar list. Change my-gravatar.jpg with your own.
The last step is to upload your avatar into the images folder of your theme.
In order to change your default avatar go to Settings>Discussion and choose your image.
Read MoreMove the Kubrick Sidebar to the left
The default Kubrick template that comes with WordPress
is great straight out of the box. However, some people prefer to have their pages and posts laid out differently.
By default, the sidebar is located on the right side of the page rather than the left. The following tutorial explains how to easily move the sidebar from right to left.
Read MoreChanging the Size of the Avatar
The default size of an avatar in a wordpress theme is 32×32px, which is sometime’s a bit small. In my new theme design I want to change it to 60×60px instead.
In your theme, open the comments.php and look for the following code:
| 1 | <?php wp_list_comments(); ?> |
This simple line of code has a lot of options available. If you want to learn more about them, just have a look at the WordPress Codex pages. For now, we’ll just concentrate on the size of the avatar.
The way to change the default size is simply by adding some text inside the function, like this:
| 1 | <?php wp_list_comments(‘avatar_size=60′); ?> |
It’s that simple!
101 Techniques for a Powerful CMS using WordPress
This is the first article in the four-part series, “The Comprehensive Guide for a Powerful CMS using WordPress“. Throughout this article, we’ll be focus on many WordPress Theme hacks, ideas, tips and useful tutorials you need to have ready in hand when developing WordPress websites.
There are some technical stuff we have to get out of the way first. Let’s take a look at useful, yet rather unknown techniques for a powerful CMS using WordPress. Each section of the article presents a suggestion and provides you with an explanation of the solution for each suggestion.
Read More