Skip to main content

How To Automatically Optimize Images For SEO

How To Automatically Optimize Images For SEO



     Never forget Image Optimization. Search Engine Optimization is not only about doing keyword researches and building strong backlinks, there are some little but vital SEO techniques of Image Optimization.

Why should I do Image Optimization? 


       Images have a great effect on blogs/websites SEO and articles ranking on search results. Google/Bing uses the keywords in your images alt texts, alt titles and src to display images each time a visitors search a particular keyword. Image optimization also helps search engine bots to detect the meaning of your images from alt titles and text.

How To Do Image Optimization For SEO?

     In the previous post, I made on the post how to improve SEO with image optimization. But optimizing each image can be very difficult which brings us to the main deal. Today I'm going to tell you how to automatically do Image optimization for SEO. By just adding a javascript code in your blog template's body tag.



2. Navigate to Themes Option > Edit HTML.

3. Search for </body> or &lt;/body&gt , then copy and paste the code, below javascript code just above the body tag.



<script type='text/javascript'> //<![CDATA[ $(document).ready(function() { $('img').each(function(){ var $img = $(this); var filename = $img.attr('src') $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.'))); }); }); //]]> </script> <script type='text/javascript'> //<![CDATA[ $(document).ready(function() { $('img').each(function(){ var $img = $(this); var filename = $img.attr('src') $img.attr('title', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.'))); }); }); //]]> </script>


4. Click on Save Template.

Important Notice

Above javascript code fetches the image name and uses it as the alt text and alt title. So, always name the title of your image with quality keywords.

Thanks For Reading. Please Keep Visiting

Read More: 2 Reasons Why Your Blog Is Not Showing Up On Google Search Engine

Comments

Popular posts from this blog

How To Add Google Analytics To Blogger

In case you are not kidding concerning diaryging and obtaining a lot of traffic to your blog, introducing Google Analytics on your Blogger.com diary is associate degree unquestionable demand. 

Google Analytics could be a suite of web site} traffic apparatuses that help you screen your site traffic even as wherever your traffic is returning from and parcels a lot of. 

Fortunately, it's too straightforward to feature Google Analytics to Blogger. Since Blogger.com could be a Google organization, they've created the procedure past easy. 

I will walk you thru the whole procedure of agreeing to just accept Google Analytics even as introducing it on your Blogger.com blog. 

Step by step directions to feature Google Analytics 


How to Add Google Analytics

Stage 1: Create an Account for Google Analytics 

Go to the Google Analytics page. Sign in utilizing your Google account email. For Blogger.com, you'll be able to utilize an identical email you utilize for your diary. You should check in f…

Submit A Sitemap To Bing Webmaster Tools

In the last post, I discussed how to submit a blog's/website Sitemap to Google Webmaster Tools. Now I will tell you about another SEO booster. If your site showing up only in the Google Search engine, then why not make it show up in Bing Search engine. Today I will teach you how to submit your blogger/website Sitemap to Bing webmaster tools.



      A Sitemap is a structural data that contains all the sections of the blog's pages and posts on a blogger blog. This makes it easy for search engine bots/web crawler to analyse the content and pages on your blog. A Sitemap must be submitted to the search engine for indexing and crawling on your site to show up in search results,. If you want to get lots of real visitors then add your blog's Sitemap to Bing webmaster tools is compulsory.


Bing Webmaster Tools       Bing webmaster tools is a set of tools powered by Yahoo but later it changed the name to bing. When this tools used properly it makes your site to show up in Bing top Sea…

Download Free Vigil v1.7 – CCTV, Security WordPress Theme

Welcome to Vigil. 
The vigil is the most recent topic from Designthemes solely intended for your security concerns. Vigil tends to the security necessities of your home, manor, flats, resorts and other private just as business buildings. 

SECURITY Dangers 
Send any sort of security gear in your structures, for example, Arch cams, Tag Camera, Advanced Video Recorder, HD Surveillance Camera Framework, Receiving wire Label frameworks, Vandal Safe Vaults just as Bureau Alert Bolts and watch the recordings in the solace of your home, office or vehicle. 

Distinguishing any sort of gatecrashers, for example, criminals or creatures interruption, CCTV Secure360 helps your journey for wellbeing in any premises. 

The vigil is in a perfect world suited for anybody keen on defending their premises. Regardless of whether it is private or business, Vigil is a definitive decision in anchoring your wellbeing and security. Give us a chance to see the Vigil topic in more profundity and look at the Modules an…