TutZone- Tutorials, Design news and Inspiration | ![]() |
Change Default Gravatar to Your Choice in WordPress Posted: 25 Aug 2010 12:48 AM PDT To brand your blog, you need to take care of all minute things including Default Gravatar (Mystery Man), which is annoying to most readers. This simple tutorial will help you change your Default Gravatar shown on your blog to a custom image. Procedure:Note: Do take backup of your theme before you try this. 01. Upload a 48 x 48px image to your theme directory. 02. In your WordPress Admin panel go to Appearance => Editor. 02. Then choose functions.php file from right hand side and add below code: add_filter( 'avatar_defaults', 'newgravatar' ); 03. In above code change /images/tutzonegravatar.gif to the location/name of your image and TutZone to name of the Avatar which will be shown in your Options Panel and Save file. 04. Now go to Settings => Discussion and change your default Gravatar to a custom one: That concludes this simple and useful tutorial. Hope you like it. |
You are subscribed to email updates from TutZone To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment