Sunday, 23 May 2021

Auto post title as a image alt, title in blogger 2021

   


Image SEO important for search engine ranking, it's better use manually but if you thing save time while solo admin . this tricks will help you to save your time and improve the site quality. 

How to add auto meta description/keywords for Blogger


Step 1: Simply, from your Blogger Dashboard go to Template.

Step 2: And the Edit HTML.

show-post-title-only-on-homepage-in-blogger

Step 3: And now search for the </head> tag. ( Use Ctrl+F for searching)

Step 4: Just add above  the code given below:

 <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>


Step 3: And now search for the <!-- Ad --> tag. ( Use Ctrl+F for searching)

Step 4: Just add above  the code given below:

<script type='text/javascript'>

  var postTitle = &quot;<data:blog.pageName/> <data:blog.title/>&quot;;
    //<![CDATA[
    $('img').each(function(){
    var $img = $(this);

      // get the text in the element

    $img.attr('title', postTitle); // set text of title
    $img.attr('alt', postTitle); // set text of alt
});
    //]]>
    </script>

Step 5: And now click on save template.

note: this tricks only work post/pages . if you need home page others your should search google or tell us trough comment.

Last Words

I hope you have understood it. Comment your views and feedback about this post through comment box. 

No comments:

Post a Comment