Select Menu
  • Home
  • Wordpress
  • Blogspot
  • SEO
  • Online Earning
  • About Us
  • Contact Us
  • Sitemap
  • PrivacyPolicy
  • About Us
  • Contact Us
  • Sitemap
  • Privacy Policy
Pressspot - Wordpress, Blogspot Coding And SEO Tutorial
  • Home
  • Wordpress
  • Blogspot
  • SEO
  • Earning
Home wordpress Change default gravatar image from your wordpress blog without any plugin!!

Thursday, 12 April 2018

সিহাব সুমন

Change default gravatar image from your wordpress blog without any plugin!!

  সিহাব সুমন      Thursday, 12 April 2018     wordpress      No comments   
When we create an account a wordpress blog then we see a default gravatar image like this:
(although that gravatar image you can change.) This gravatar image choosen by wordpress team. but if you can want, you can change this default gravatar image without plugin. when a new user will register your site then him/her default gravatar will changed automatically. for this please follow:
1. Copy this codes:
add_filter( 'avatar_defaults', 'custom_avatar' );
    function custom_avatar($avatar_defaults){
    $custom_avatar = get_stylesheet_directory_uri() . '/images/author-site.png';
    $avatar_defaults[$custom_avatar] = "My Default Avatar";
    return $avatar_defaults;
 }
Any problems copy code here:
2. Now paste it on yor wordpress themes 'functions.php' file and save it.
Done!!! now you can change default gravatar from settings like this:

Thanks for visiting my post.
Share This Post
Tweet Share Share Share Share Share

0 comments:

Post a Comment

Comments here

Popular Posts

  • How to add autoplay background music on blogger blog.
    We know that blogger or blogspot is a favorite blogging platform for all of bloggers. it is easy to use and free platform. one can easily ...
  • Do you know? how to stop all external request on your wordpress blog?
    At first take my salam, hope all of you are very fine. i am also. wordpress is a number one blogging platform. it is easy to use and manag...
  • Wordpress file upload button or 'add media' button not working? this is the solution!!
    How are you? wish all of you are very fine. im also fine. you know that i always share without plugin post. today i am sharing a nice code ...
  • Hide 'Screen Option' tab from your wordpress dashboard with some coding !!!
    Hope all of you are very fine. when we visit our wordpress dashboard then we see a tab menu on lef side corner which is named 'Screen O...
  • If your wordpress theme doesn't support 'Menu' you can try this post for 'Menu' support.
    some low quality wordpress theme doesn't support menu. or when a wordpress theme maker create new custom theme then need menu support...
  • Remove wordpress logo from admin bar!
    When we visit our wordpress sites admin panel in dashboard. then we see a wordpress logo like this: Which is containing a wordpress logo...
  • How to change default footer text from wordpress dashboard.
    When we enter our wordpress sites dashboard then we see some default text and link like this: which is wordpress related. however, if y...
  • After wordpress install you should be complete 10 tasks.
    You can make a wordpress blog without any kinds of programming knowledge. for dynamic website or blog wordpress is best. my blog is inreac...
  • Stop dragging effect for wordpress metabox without any kinds of plugins!!
    At first take my salam. hope all of you are very fine. when we visit our wordpress sites dashboard, then we see some meta box and if you wa...
  • how to change the permalink in wordpress without plugins ?
    how to change the permalink in wordpress Generally we set wordpress permalink from setting option. but if you try you can set permal...

Contact Form

Name

Email *

Message *

Subscribe to our email newsletter & receive updates right in your inbox.

Blog Archive

Popular Posts

  • How to add autoplay background music on blogger blog.
    We know that blogger or blogspot is a favorite blogging platform for all of bloggers. it is easy to use and free platform. one can easily ...
  • Do you know? how to stop all external request on your wordpress blog?
    At first take my salam, hope all of you are very fine. i am also. wordpress is a number one blogging platform. it is easy to use and manag...
  • Wordpress file upload button or 'add media' button not working? this is the solution!!
    How are you? wish all of you are very fine. im also fine. you know that i always share without plugin post. today i am sharing a nice code ...
  • Hide 'Screen Option' tab from your wordpress dashboard with some coding !!!
    Hope all of you are very fine. when we visit our wordpress dashboard then we see a tab menu on lef side corner which is named 'Screen O...
  • If your wordpress theme doesn't support 'Menu' you can try this post for 'Menu' support.
    some low quality wordpress theme doesn't support menu. or when a wordpress theme maker create new custom theme then need menu support...
click here

Labels

blogspot (1) wordpress (27)

Facebook Fan

BANNER 728X90

মোট পৃষ্ঠাদর্শন

Sparkline

আমার সম্পর্কে

  • সিহাব সুমন
  • itbatayan

Responsive Ads

Responsive Ads Here
Powered by: Blogger
Sitemap | Terms Condition |
Copyright © Pressspot - Wordpress, Blogspot Coding And SEO Tutorial