How to Change the Default Gravatar on WordPress
Gravatar, a common thing that we are seeing implemented in many blog designs. While I am working on the free theme for you guys, I thought maybe it is better to brand the theme with a custom gravatar for the users as well. Customized gravatars help you brand your site even more. Well I personally did not know of any way to change this, so I looked on the web for tutorials. I found two different tutorials, and they both work. There are advantages to use both, so I will share them with you.
First Method: By editing the Comments.php File
Michael at Problogdesign came up with this tutorial.
First you need to open up your comments.php file, or legacy.comments.php file if you are using that.
Find this code:
<?php echo get_avatar( $comment, 60 ); ?>
Note: You might not have the 60 because different themes come with different sizes for the gravatar.
You need to replace this code with your own created image code as follow:
<?php echo get_avatar( $comment, 60, ‘http://www.balkhis.com/wp-content/themes/yourthemename/images/youravatar.png’); ?>
Remember to change the url to the correct path. Now if you want to understand the code basically it is calling this image as you default avatar when you put that link unless a user already have a gravatar.
And the 60 represent the size in pixels which is why I said it won’t be the same in each theme. You may change the size of it to fit your theme.
Now this is for people who like to have raw codes, but if you are releasing this theme out for free, then it won’t be the best choice because people can really screw with the codes if they mess things up accidently.
Step 2: Editing the Functions File
This is another tutorial that I found on the web which is basically a plugin in a non-plugin form. I found this code at Build Internet. Basically in this plugin you are editing your functions.php file
add_filter( ‘avatar_defaults’, ‘newgravatar’ );
function newgravatar ($avatar_defaults) {
$myavatar = get_bloginfo(‘template_directory’) . ‘/images/buildinternet-gravatar.jpg’;
$avatar_defaults[$myavatar] = "Build Internet";
return $avatar_defaults;
}
By adding these codes you are telling wordpress that there is another image that you like to be seen. So once you add this code, you will see an image in your admin panel.
You can even have more than one default gravatars if you want to give more options. Just simply duplicate the $myavatar variable multiple times, and you will have it.
The advantage of this code is that it is easier for users who are not coders because they don’t have to look a whole lot to change.
I will let you make the pick.
Now you should be able to change the default mystery man avatar to your personal branded new avatar logo. Thanks to these two fellas for providing us with the options.





















Twitter is one tool that will help you make connections with users that you will never have known before existed. You can get to know a whole different side of a person. You can know more about me by
With the speed twitter is growing, more and more businesses are creating their user accounts. They are even hiring a person who is on their twitter account tweeting back at their customers. So sometimes you might not even get a response through your email, but you will be able to hear back a response through twitter. This works if you want to connect with top bloggers and marketers as well. These guys have insane amount of emails to go through daily, so your email will be ignored, but tweets since they are only 140 characters, they will respond because it doesn’t take them very long. You can get quick support if you join twitter.
You can never have too much knowledge. Specially if you are a designer like me. Half of the people that I am following are designers. I see so many great articles and resources that help me improve designing skills daily. No matter what your niche is there is always someone there for your niche, and there is always resources for you. And if there is not, then man you are lucky because you can capitalize the zone, and take full benefit from the newcomers.
No matter what you are trying to keep up with, twitter has the latest info of it. From technology to breaking news, you can find it all on twitter. Heck the earthquake in Italy was first reported on twitter before it was on CNN. You can follow the web trends, news, special sites, and more by being on twitter. As a webmaster, or just as a normal person, you don’t want to fall behind. So to keep up you should join twitter.
I don’t know if you notice, but twitter is everywhere. It’s on the web, it’s on the news channels, it’s in commercials, it’s in paper media such as newspaper. It is taking over the world right now like facebook and myspace did at once. If you are one of those people who joins things because it is the next big thing, then this is your chance. Twitter is the next big thing that you should join because everyone is here.
Marketing is all about being creative. Creative campaigns are short and sticky. That is how your tweets are suppose to be also. 140 characters max. You have to get your point across and if you want others to read it, you got to make it interesting. Basically it is an ultimate practice for you to elevate your pitch. No one likes to read a whole page of boring proposals. The best proposals I have agreed to were short and they had very catchy headlines. Twitter is a practice for you to write better and creative headlines, so after a while you will be a better blogger due to twitter because it is helping your post titles.






Hey, I am Syed Balkhi, The guy who is behind Balkhis Inc. I entered the industry back in 2002 not knowing a single thing. I barely spoke English at that time. In the past six years, my language barrier has been eliminated. Aside from English, now I also speak html, and php. Along with the languages I have also managed to master a few arts. Art of web-designing started when I first entered. Messing around with photoshop, I learned how to create my first web design. Now I founded a web designing firm Uzzz Productions. After running numerous amount of websites in various niche, I have mastered the art of web-development. Now I am compiling a resource of what I already know, and what I am learning on this blog. This resource is to help me if I ever need a guide to look back to, and it is help my fellow webmasters.



