Showing posts with label avatars. Show all posts
Showing posts with label avatars. Show all posts

How to Change Default Anonymous Avatar in Blogger Comments

In the last tutorial, I wrote about how you can change avatars size in blogger comments and in this simple tutorial, I will show you how to change or customize default avatar of anonymous commenters or Blogger users with no picture added on their profiles. After Blogger announced new feature of threaded comment, we can still customize it by adding a jQuery plugin to our template and replacing the default anonymous avatar found at this

URL http://img1.blogblog.com/img/anon36.png
and the one for blogger users http://img2.blogblog.com/img/b36-rounded.png

...with our own.

anonymous, default avatar, blogger blogspot

Step 1.

Go to Dashboard - Template - click on the Edit HTML button and then Proceed



...then select Expand Widget Template (don't forget to make a backup)

    Step 2. Find (CTRL + F) this code in your template:

    </body>

    Step 3. Add the following code just above it:

    <script src='http://code.jquery.com/jquery-latest.js'/>
    <script>
    $(&quot;img[src=&#39;http://img1.blogblog.com/img/anon36.png&#39;]&quot;)
    .attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuJtBJW7G0oBFrskZ1b1J1SJT_3vP7hBw1kZKcbVOb66Ec4SWMxie0UgVzFByUuZAXycHeBUcyYhTEF9AFt9jHNPMXcF7IeXFSajoSK0gtvT_OMfawYh9lYa4VOAKdppEBMvRw6QrA7u8/s1600/default_avatar.gif&#39;)
    .ssyby(&#39;blank&#39;)
    </script>
    <script src='http://code.jquery.com/jquery-latest.js'/>
    <script>
    $(&quot;img[src=&#39;http://img2.blogblog.com/img/b36-rounded.png&#39;]&quot;)
    .attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6gVa6R9hoPO6SOroBwTUnyutJ5GpOl19kcR4wjb2teFDsmT5UtbIAgAJCu-lYfD6IiTJJ55-s22iaQo24U-aTU_xjQ9Q8f1J9aHC4UWJIv8nLk7hsuELFx0td0f5nXDGwQ7s2fwk0azE/s1600/blogger-user.png&#39;)
    .ssyby(&#39;blank&#39;)
    </script>

    Step 4. Save the Template

    How to change avatar:

    For Anonymous users: Replace the code in red with the url address of your image
    For Blogger users: Replace the URL in blue with your own.

    You can choose one from these below (copy the url address):


    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuJtBJW7G0oBFrskZ1b1J1SJT_3vP7hBw1kZKcbVOb66Ec4SWMxie0UgVzFByUuZAXycHeBUcyYhTEF9AFt9jHNPMXcF7IeXFSajoSK0gtvT_OMfawYh9lYa4VOAKdppEBMvRw6QrA7u8/s200/default_avatar.gif


    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivJely5M1g9tOE_5hABDfFgddt1BP7hWEUc0ZWLd22IlyHzSmf_mNkAfgiHggjHLcYXuH5je-kTdSxsRv9L_uS2AkUuecNBfkTdBjiT-NwvZvDDj15R5U2l4NTHUhNhBBm6FDR93RFhik/s1600/facebook.gif


    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWpLUT-J6BSbfChTaUFITkJ9DF82WUSMZyuaONlpy__FjJSpbYrYkKClSqF84uXCOEZCMhFh7Ss73ou8zEoDp_YoknOVvYRH9VdOJKrJZFMnyyiungiU3kyUdTw3wEAV4nvT5eF1P9ga0/s1600/anonymous3.png



    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1zeUIlJDWAnZ5MTzQm2fV3RegNsBB2wMwRJKL3eff59zvKaK_2-9VSFbSeufHtjk6JzA9y4VkQ88okDnosEX5O71xxC4Oyzo5i0P_D2_5KeKTWAkJwRzxDHgbqB-gMHvAcJe3jll9Xy66/s1600/blogger-user.png


    That's it!
    If you liked this post, please consider sharing it.

    How To Change Avatar Size In Blogger Comments

    This simple trick will help you to modify the avatars size in Blogger comments. For changing the style and size of avatars, we have to add some CSS codes in our Blogger template. So, let's begin:


    Step 1.

    Go to Dashboard - Template - click on the Edit HTML button - Proceed


    ...now select Expand Widget Template (I recommend to make a backup first)

      Step 2. Find (CTRL + F) this code in your template:

      ]]></b:skin>

      Step 3. Copy and paste one of the following codes just above it:

      [Works in Blogger threaded comment system]

      .comments .avatar-image-container{
      background-color: rgb(34, 34, 34);
      border:1px solid #ccc;
      margin: 0px 10px 0px 0px;
      padding: 0px 0px 0px 0px;
      width: 64px;
      max-height: 64px;
      }
      .comments .avatar-image-container img{
      margin: 0px 0px 0px 0px;
      padding: 0px 0px 0px 0px;
      max-width: 64px;
      height: 64px;
      }

      [for old blogger commenting system]

      .avatar-image-container{
      border:1px solid #d6d6d6;
      margin-left: -30px;
      -moz-border-radius: 4px;
      background:#fff;
      height:70px;
      min-height: 70px;
      width:70px;
      min-width:70px;
      }
      .avatar-image-container img {
      background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgqvC83wsEjuNiMKjva-trn5oPS5Z0Um6NdJq4bwS26FqoxETAgpgg_BoMGBUG6Cm044up47UDmFq_L6P3YhcsbrQxJ23adGI9uaMNAIxGtQ8owIv0sCrW1juAmelyp1dQ8rtwpv8ExSM/s200/anonymous.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: 100%;
      width:70px;
      min-width:70px;
      height:70px;
      min-height:70px;
      }

      Note: If you want bigger/smaller avatars, change the values in red. To change the anonymous avatar, replace the URL address in blue with your own. (works only for previous commenting system)

      Step 4. Save the Template.

      Now view your blog to see the results. Hope you enjoy!